Class: OdataDuty::EntitySet

Inherits:
Object
  • Object
show all
Defined in:
lib/odata_duty.rb

Defined Under Namespace

Classes: Metadata

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#contextObject (readonly)

Returns the value of attribute context.



178
179
180
# File 'lib/odata_duty.rb', line 178

def context
  @context
end

Class Method Details

.__metadataObject



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_initObject



185
# File 'lib/odata_duty.rb', line 185

def od_after_init; end


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