Class: Fog::Ecloud::MockDataClasses::MockPublicIpInternetServiceNode

Inherits:
Base
  • Object
show all
Defined in:
lib/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

Constructor Details

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

Instance Method Details

#descriptionObject



748
749
750
# File 'lib/fog/ecloud/mock_data_classes.rb', line 748

def description
  self[:description] || "Description for Public IP Service Node #{name}"
end

#enabledObject



756
757
758
# File 'lib/fog/ecloud/mock_data_classes.rb', line 756

def enabled
  self[:enabled].to_s.downcase != "false"
end

#enabled=(new_value) ⇒ Object



760
761
762
# File 'lib/fog/ecloud/mock_data_classes.rb', line 760

def enabled=(new_value)
  self[:enabled] = new_value
end

#ip_addressObject



740
741
742
# File 'lib/fog/ecloud/mock_data_classes.rb', line 740

def ip_address
  self[:ip_address]
end

#nameObject



744
745
746
# File 'lib/fog/ecloud/mock_data_classes.rb', line 744

def name
  self[:name] || "Public IP Service Node #{object_id}"
end

#portObject



752
753
754
# File 'lib/fog/ecloud/mock_data_classes.rb', line 752

def port
  self[:port]
end