Class: Fog::Vcloud::MockDataClasses::MockPublicIpInternetService

Inherits:
Base
  • Object
show all
Defined in:
lib/fog/vcloud/mock_data_classes.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::Vcloud::MockDataClasses::Base

Instance Method Details

#backup_serviceObject



718
719
720
# File 'lib/fog/vcloud/mock_data_classes.rb', line 718

def backup_service
  self[:backup_service]
end

#descriptionObject



686
687
688
# File 'lib/fog/vcloud/mock_data_classes.rb', line 686

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

#enabledObject



698
699
700
# File 'lib/fog/vcloud/mock_data_classes.rb', line 698

def enabled
  !!self[:enabled]
end

#monitorObject



714
715
716
# File 'lib/fog/vcloud/mock_data_classes.rb', line 714

def monitor
  nil
end

#nameObject



682
683
684
# File 'lib/fog/vcloud/mock_data_classes.rb', line 682

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

#node_collectionObject



710
711
712
# File 'lib/fog/vcloud/mock_data_classes.rb', line 710

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

#portObject



694
695
696
# File 'lib/fog/vcloud/mock_data_classes.rb', line 694

def port
  self[:port]
end

#protocolObject



690
691
692
# File 'lib/fog/vcloud/mock_data_classes.rb', line 690

def protocol
  self[:protocol]
end

#redirect_urlObject



702
703
704
# File 'lib/fog/vcloud/mock_data_classes.rb', line 702

def redirect_url
  self[:redirect_url]
end

#timeoutObject



706
707
708
# File 'lib/fog/vcloud/mock_data_classes.rb', line 706

def timeout
  self[:timeout] || 2
end