Class: DeltacloudVM::Client::Realm
- Defined in:
- lib/deltacloud_vm/client/models/realm.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
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
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
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
19 20 21 |
# File 'lib/deltacloud_vm/client/models/realm.rb', line 19 def limit @limit end |
#state ⇒ Object (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 |