Class: Fog::Compute::OpenStack::Host
- Defined in:
- lib/fog/openstack/models/compute/host.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(attributes) ⇒ Host
constructor
A new instance of Host.
Methods inherited from Model
#inspect, #reload, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #requires, #requires_one
Constructor Details
#initialize(attributes) ⇒ Host
Returns a new instance of Host.
14 15 16 17 |
# File 'lib/fog/openstack/models/compute/host.rb', line 14 def initialize(attributes) @connection = attributes[:connection] super end |
Instance Method Details
#details ⇒ Object
19 20 21 |
# File 'lib/fog/openstack/models/compute/host.rb', line 19 def details connection.get_host_details(self.host_name).body['host'] end |