Class: OdataDuty::EntitySet
- Inherits:
-
Object
- Object
- OdataDuty::EntitySet
- Defined in:
- lib/odata_duty.rb
Defined Under Namespace
Classes: Metadata
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Class Method Summary collapse
- .__metadata ⇒ Object
- .entity_type(entity_type = nil) ⇒ Object
- .name(name = nil) ⇒ Object
- .url(url = nil) ⇒ Object
Instance Method Summary collapse
-
#initialize(context:) ⇒ EntitySet
constructor
A new instance of EntitySet.
- #od_after_init ⇒ Object
- #od_next_link_skiptoken(token = nil) ⇒ Object
Constructor Details
#initialize(context:) ⇒ EntitySet
Returns a new instance of EntitySet.
180 181 182 183 |
# File 'lib/odata_duty.rb', line 180 def initialize(context:) @context = context od_after_init end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
178 179 180 |
# File 'lib/odata_duty.rb', line 178 def context @context end |
Class Method Details
.__metadata ⇒ Object
174 175 176 |
# File 'lib/odata_duty.rb', line 174 def self. Metadata.new(self) end |
.entity_type(entity_type = nil) ⇒ Object
21 22 23 24 |
# File 'lib/odata_duty.rb', line 21 def self.entity_type(entity_type = nil) @entity_type = entity_type if entity_type @entity_type end |
.name(name = nil) ⇒ Object
26 27 28 29 30 |
# File 'lib/odata_duty.rb', line 26 def self.name(name = nil) @name = name.to_s if name.is_a?(Symbol) @name = name.to_str if name && !name.is_a?(Symbol) @name end |
.url(url = nil) ⇒ Object
32 33 34 35 36 |
# File 'lib/odata_duty.rb', line 32 def self.url(url = nil) @url = url.to_s if url.is_a?(Symbol) @url = url.to_str if url && !url.is_a?(Symbol) @url end |
Instance Method Details
#od_after_init ⇒ Object
185 |
# File 'lib/odata_duty.rb', line 185 def od_after_init; end |
#od_next_link_skiptoken(token = nil) ⇒ Object
187 188 189 190 |
# File 'lib/odata_duty.rb', line 187 def od_next_link_skiptoken(token = nil) @od_next_link_skiptoken = token.to_s if token @od_next_link_skiptoken end |