Class: Fog::Ecloud::MockDataClasses::MockPublicIpInternetServiceNodes
Instance Method Summary collapse
Methods inherited from Base
#_parent, base_url, #base_url, base_url=, #first, #initialize, #inspect, #last
Methods inherited from Hash
Constructor Details
This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base
Instance Method Details
#href ⇒ Object
725 726 727 |
# File 'lib/fog/ecloud/mock_data_classes.rb', line 725 def href _parent.href + "/nodeServices" end |
#items ⇒ Object
729 730 731 732 733 734 735 736 737 738 |
# File 'lib/fog/ecloud/mock_data_classes.rb', line 729 def items @items ||= [].tap do |node_array| node_array.instance_variable_set("@default_port", _parent.port) def node_array.<<(node) node[:port] ||= @default_port super end end end |