Class: Fog::Ecloud::MockDataClasses::MockBackupInternetService

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

#descriptionObject



631
632
633
# File 'lib/fog/ecloud/mock_data_classes.rb', line 631

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

#enabledObject



623
624
625
# File 'lib/fog/ecloud/mock_data_classes.rb', line 623

def enabled
  self[:enabled].to_s.downcase != "false"
end

#nameObject



611
612
613
# File 'lib/fog/ecloud/mock_data_classes.rb', line 611

def name
  self[:name] || "Backup Internet Service #{object_id}"
end

#node_collectionObject



639
640
641
# File 'lib/fog/ecloud/mock_data_classes.rb', line 639

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

#portObject



619
620
621
# File 'lib/fog/ecloud/mock_data_classes.rb', line 619

def port
  0
end

#protocolObject



615
616
617
# File 'lib/fog/ecloud/mock_data_classes.rb', line 615

def protocol
  self[:protocol]
end

#redirect_urlObject



635
636
637
# File 'lib/fog/ecloud/mock_data_classes.rb', line 635

def redirect_url
  nil
end

#timeoutObject



627
628
629
# File 'lib/fog/ecloud/mock_data_classes.rb', line 627

def timeout
  self[:timeout] || 2
end