Class: OData::EntitySet
- Inherits:
-
Object
- Object
- OData::EntitySet
- Defined in:
- lib/odata/entity_set.rb
Instance Attribute Summary collapse
-
#member_type ⇒ Object
readonly
Returns the value of attribute member_type.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #collection? ⇒ Boolean
-
#initialize(options = {}) ⇒ EntitySet
constructor
A new instance of EntitySet.
- #type ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ EntitySet
Returns a new instance of EntitySet.
6 7 8 9 10 |
# File 'lib/odata/entity_set.rb', line 6 def initialize( = {}) @name = [:name] @member_type = [:member_type] @service = [:service] end |
Instance Attribute Details
#member_type ⇒ Object (readonly)
Returns the value of attribute member_type.
4 5 6 |
# File 'lib/odata/entity_set.rb', line 4 def member_type @member_type end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/odata/entity_set.rb', line 3 def name @name end |
Instance Method Details
#collection? ⇒ Boolean
12 13 14 |
# File 'lib/odata/entity_set.rb', line 12 def collection? true end |
#type ⇒ Object
16 17 18 |
# File 'lib/odata/entity_set.rb', line 16 def type @service.get_type_by_name("Collection(#{member_type})") end |