Class: DeltacloudVM::Client::Realm

Inherits:
Base
  • Object
show all
Defined in:
lib/deltacloud_vm/client/models/realm.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#description, #name, #obj_id, #url

Class Method Summary collapse

Methods inherited from Base

#client, #connection, convert, #entrypoint, from_collection, #id, #initialize, #original_body, #to_s, #update_instance_variables!, validate_attrs!

Methods included from Helpers::XmlHelper

#extract_xml_body

Methods included from Methods::Api

#api_uri, #current_driver, #current_provider, #feature?, #features, #must_support!, #path, #support?, #supported_collections, #version

Methods included from Helpers::Model

#error, #from_collection, #from_resource, #model

Constructor Details

This class inherits a constructor from DeltacloudVM::Client::Base

Instance Attribute Details

#limitObject (readonly)

Returns the value of attribute limit.



19
20
21
# File 'lib/deltacloud_vm/client/models/realm.rb', line 19

def limit
  @limit
end

#stateObject (readonly)

Returns the value of attribute state.



20
21
22
# File 'lib/deltacloud_vm/client/models/realm.rb', line 20

def state
  @state
end

Class Method Details

.parse(xml_body) ⇒ Object



22
23
24
25
26
27
# File 'lib/deltacloud_vm/client/models/realm.rb', line 22

def self.parse(xml_body)
  {
    :state => xml_body.text_at('state'),
    :limit => xml_body.text_at('limit')
  }
end