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

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

#backup_serviceObject



750
751
752
# File 'lib/fog/compute/ecloud.rb', line 750

def backup_service
  self[:backup_service]
end

#descriptionObject



718
719
720
# File 'lib/fog/compute/ecloud.rb', line 718

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

#enabledObject



730
731
732
# File 'lib/fog/compute/ecloud.rb', line 730

def enabled
  !!self[:enabled]
end

#monitorObject



746
747
748
# File 'lib/fog/compute/ecloud.rb', line 746

def monitor
  nil
end

#nameObject



714
715
716
# File 'lib/fog/compute/ecloud.rb', line 714

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

#node_collectionObject



742
743
744
# File 'lib/fog/compute/ecloud.rb', line 742

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

#portObject



726
727
728
# File 'lib/fog/compute/ecloud.rb', line 726

def port
  self[:port]
end

#protocolObject



722
723
724
# File 'lib/fog/compute/ecloud.rb', line 722

def protocol
  self[:protocol]
end

#redirect_urlObject



734
735
736
# File 'lib/fog/compute/ecloud.rb', line 734

def redirect_url
  self[:redirect_url]
end

#timeoutObject



738
739
740
# File 'lib/fog/compute/ecloud.rb', line 738

def timeout
  self[:timeout] || 2
end