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

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

#descriptionObject


660
661
662
# File 'lib/fog/ecloud/compute.rb', line 660

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

#enabledObject


652
653
654
# File 'lib/fog/ecloud/compute.rb', line 652

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

#nameObject


640
641
642
# File 'lib/fog/ecloud/compute.rb', line 640

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

#node_collectionObject


668
669
670
# File 'lib/fog/ecloud/compute.rb', line 668

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

#portObject


648
649
650
# File 'lib/fog/ecloud/compute.rb', line 648

def port
  0
end

#protocolObject


644
645
646
# File 'lib/fog/ecloud/compute.rb', line 644

def protocol
  self[:protocol]
end

#redirect_urlObject


664
665
666
# File 'lib/fog/ecloud/compute.rb', line 664

def redirect_url
  nil
end

#timeoutObject


656
657
658
# File 'lib/fog/ecloud/compute.rb', line 656

def timeout
  self[:timeout] || 2
end