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

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

Constructor Details

This class inherits a constructor from Fog::Ecloud::MockDataClasses::Base

Instance Method Details

#backup_serviceObject



717
718
719
# File 'lib/fog/ecloud/mock_data_classes.rb', line 717

def backup_service
  self[:backup_service]
end

#descriptionObject



685
686
687
# File 'lib/fog/ecloud/mock_data_classes.rb', line 685

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

#enabledObject



697
698
699
# File 'lib/fog/ecloud/mock_data_classes.rb', line 697

def enabled
  !!self[:enabled]
end

#monitorObject



713
714
715
# File 'lib/fog/ecloud/mock_data_classes.rb', line 713

def monitor
  nil
end

#nameObject



681
682
683
# File 'lib/fog/ecloud/mock_data_classes.rb', line 681

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

#node_collectionObject



709
710
711
# File 'lib/fog/ecloud/mock_data_classes.rb', line 709

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

#portObject



693
694
695
# File 'lib/fog/ecloud/mock_data_classes.rb', line 693

def port
  self[:port]
end

#protocolObject



689
690
691
# File 'lib/fog/ecloud/mock_data_classes.rb', line 689

def protocol
  self[:protocol]
end

#redirect_urlObject



701
702
703
# File 'lib/fog/ecloud/mock_data_classes.rb', line 701

def redirect_url
  self[:redirect_url]
end

#timeoutObject



705
706
707
# File 'lib/fog/ecloud/mock_data_classes.rb', line 705

def timeout
  self[:timeout] || 2
end