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

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



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

def backup_service
  self[:backup_service]
end

#descriptionObject



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

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

#enabledObject



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

def enabled
  !!self[:enabled]
end

#monitorObject



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

def monitor
  nil
end

#nameObject



710
711
712
# File 'lib/fog/ecloud/compute.rb', line 710

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

#node_collectionObject



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

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

#portObject



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

def port
  self[:port]
end

#protocolObject



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

def protocol
  self[:protocol]
end

#redirect_urlObject



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

def redirect_url
  self[:redirect_url]
end

#timeoutObject



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

def timeout
  self[:timeout] || 2
end