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.



159
160
161
162
# File 'lib/odata_duty.rb', line 159

def initialize(context:)
  @context = context
  od_after_init
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



157
158
159
# File 'lib/odata_duty.rb', line 157

def context
  @context
end

Class Method Details

.__metadataObject



153
154
155
# File 'lib/odata_duty.rb', line 153

def self.
  Metadata.new(self)
end

.description(text = nil) ⇒ Object



38
39
40
41
# File 'lib/odata_duty.rb', line 38

def self.description(text = nil)
  @description = Property.resolve_description(.name, text) unless text.nil?
  @description
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



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

def od_after_init; end


166
167
168
169
# File 'lib/odata_duty.rb', line 166

def od_next_link_skiptoken(token = nil)
  @od_next_link_skiptoken = token.to_s if token
  @od_next_link_skiptoken
end