Class: VagrantPlugins::Deltacloud::Domain::Subnet

Inherits:
Item
  • Object
show all
Defined in:
lib/vagrant-deltacloud-provider/client/domain.rb

Instance Attribute Summary

Attributes inherited from Item

#id, #name

Instance Method Summary collapse

Methods inherited from Item

#==

Constructor Details

#initialize(id, name) ⇒ Subnet

Returns a new instance of Subnet.



170
171
172
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 170

def initialize(id, name)
  super(id, name)
end

Instance Method Details

#to_sObject



174
175
176
177
178
179
# File 'lib/vagrant-deltacloud-provider/client/domain.rb', line 174

def to_s
  {
    id: @id,
    name: @name
  }.to_json
end