RateCollection

RateCollection class

Represents a collection which contains Rate objects.

The RateCollection type exposes the following members:

Properties

NameDescription
countGets the number of elements contained in the RateCollection.
is_read_onlyGets a value indicating whether this collection is read only.
parent_resourceGets the parent Resource object for this collection.

Methods

NameDescription
add(rates_from)Adds a new Rate instance to this collection.
add(rates_from, type)Adds a new Rate instance to this collection.
to_list()Converts the RateCollection object to a list of Rate objects.
to_list(type)Converts the RateCollection object to a list of Rate objects filtered by specified RateType type.
remove(item)Removes Rate instance from this collection.

See Also