Class: Fog::Ecloud::MockDataClasses::MockPublicIpInternetServiceNode
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Ecloud::MockDataClasses::MockPublicIpInternetServiceNode
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!
Instance Method Details
#description ⇒ Object
750
751
752
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 750
def description
self[:description] || "Description for Public IP Service Node #{name}"
end
|
#enabled ⇒ Object
758
759
760
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 758
def enabled
self[:enabled].to_s.downcase != "false"
end
|
#enabled=(new_value) ⇒ Object
762
763
764
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 762
def enabled=(new_value)
self[:enabled] = new_value
end
|
#ip_address ⇒ Object
742
743
744
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 742
def ip_address
self[:ip_address]
end
|
#name ⇒ Object
746
747
748
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 746
def name
self[:name] || "Public IP Service Node #{object_id}"
end
|
#port ⇒ Object
754
755
756
|
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 754
def port
self[:port]
end
|