Class: Fog::Ecloud::MockDataClasses::MockCatalogItem

Inherits:
Base
  • Object
show all
Defined in:
lib/rackspace-fog/ecloud/mock_data_classes.rb

Instance Method Summary collapse

Methods inherited from Base

#_parent, base_url, #base_url, base_url=, #first, #href, #initialize, #inspect, #last

Methods inherited from Hash

#symbolize_keys!

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#customizationObject



308
309
310
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 308

def customization
  @customization ||= MockCatalogItemCustomization.new({}, self)
end

#disksObject



304
305
306
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 304

def disks
  @disks ||= MockVirtualMachineDisks.new(self)
end

#nameObject



300
301
302
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 300

def name
  self[:name]
end

#vapp_templateObject



312
313
314
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 312

def vapp_template
  @vapp_template ||= MockCatalogItemVappTemplate.new({ :name => name }, self)
end