Class: ManageIQ::API::Client::CollectionOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/manageiq/api/client/collection_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CollectionOptions

Returns a new instance of CollectionOptions.



10
11
12
13
# File 'lib/manageiq/api/client/collection_options.rb', line 10

def initialize(options = {})
  @attributes, @virtual_attributes, @relationships, @data =
    options.values_at("attributes", "virtual_attributes", "relationships", "data")
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/manageiq/api/client/collection_options.rb', line 5

def attributes
  @attributes
end

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/manageiq/api/client/collection_options.rb', line 8

def data
  @data
end

#relationshipsObject (readonly)

Returns the value of attribute relationships.



7
8
9
# File 'lib/manageiq/api/client/collection_options.rb', line 7

def relationships
  @relationships
end

#virtual_attributesObject (readonly)

Returns the value of attribute virtual_attributes.



6
7
8
# File 'lib/manageiq/api/client/collection_options.rb', line 6

def virtual_attributes
  @virtual_attributes
end