Class: Fog::Ecloud::MockDataClasses::MockPublicIpInternetService

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

#backup_serviceObject



719
720
721
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 719

def backup_service
  self[:backup_service]
end

#descriptionObject



687
688
689
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 687

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

#enabledObject



699
700
701
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 699

def enabled
  !!self[:enabled]
end

#monitorObject



715
716
717
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 715

def monitor
  nil
end

#nameObject



683
684
685
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 683

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

#node_collectionObject



711
712
713
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 711

def node_collection
  @node_collection ||= MockPublicIpInternetServiceNodes.new({}, self)
end

#portObject



695
696
697
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 695

def port
  self[:port]
end

#protocolObject



691
692
693
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 691

def protocol
  self[:protocol]
end

#redirect_urlObject



703
704
705
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 703

def redirect_url
  self[:redirect_url]
end

#timeoutObject



707
708
709
# File 'lib/rackspace-fog/ecloud/mock_data_classes.rb', line 707

def timeout
  self[:timeout] || 2
end