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

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



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

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

#enabledObject



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

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

#nameObject



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

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

#node_collectionObject



672
673
674
# File 'lib/fog/compute/ecloud.rb', line 672

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

#portObject



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

def port
  0
end

#protocolObject



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

def protocol
  self[:protocol]
end

#redirect_urlObject



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

def redirect_url
  nil
end

#timeoutObject



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

def timeout
  self[:timeout] || 2
end