Class: VagrantPlugins::Openstack::Domain::Item
- Inherits:
-
Object
- Object
- VagrantPlugins::Openstack::Domain::Item
- Defined in:
- lib/vagrant-openstack-provider/client/domain.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id, name) ⇒ Item
constructor
A new instance of Item.
- #state ⇒ Object
Constructor Details
#initialize(id, name) ⇒ Item
Returns a new instance of Item.
9 10 11 12 |
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 9 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 8 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 8 def name @name end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 14 def ==(other) other.class == self.class && other.state == state end |
#state ⇒ Object
18 19 20 |
# File 'lib/vagrant-openstack-provider/client/domain.rb', line 18 def state [@id, @name] end |