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

Methods inherited from Hash

#symbolize_keys!

Constructor Details

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

Instance Method Details

#descriptionObject



633
634
635
# File 'lib/fog/ecloud/mock_data_classes.rb', line 633

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

#enabledObject



625
626
627
# File 'lib/fog/ecloud/mock_data_classes.rb', line 625

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

#nameObject



613
614
615
# File 'lib/fog/ecloud/mock_data_classes.rb', line 613

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

#node_collectionObject



641
642
643
# File 'lib/fog/ecloud/mock_data_classes.rb', line 641

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

#portObject



621
622
623
# File 'lib/fog/ecloud/mock_data_classes.rb', line 621

def port
  0
end

#protocolObject



617
618
619
# File 'lib/fog/ecloud/mock_data_classes.rb', line 617

def protocol
  self[:protocol]
end

#redirect_urlObject



637
638
639
# File 'lib/fog/ecloud/mock_data_classes.rb', line 637

def redirect_url
  nil
end

#timeoutObject



629
630
631
# File 'lib/fog/ecloud/mock_data_classes.rb', line 629

def timeout
  self[:timeout] || 2
end