Class: VagrantPlugins::Deltacloud::Domain::Item
- Inherits:
-
Object
- Object
- VagrantPlugins::Deltacloud::Domain::Item
- Defined in:
- lib/vagrant-deltacloud-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.
10 11 12 13 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 10 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 9 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 9 def name @name end |
Instance Method Details
#==(other) ⇒ Object
15 16 17 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 15 def ==(other) other.class == self.class && other.state == state end |
#state ⇒ Object
19 20 21 |
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 19 def state [@id, @name] end |