Class: Fog::Vcloud::MockDataClasses::MockBackupInternetService

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

Instance Method Details

#descriptionObject



632
633
634
# File 'lib/fog/vcloud/mock_data_classes.rb', line 632

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

#enabledObject



624
625
626
# File 'lib/fog/vcloud/mock_data_classes.rb', line 624

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

#nameObject



612
613
614
# File 'lib/fog/vcloud/mock_data_classes.rb', line 612

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

#node_collectionObject



640
641
642
# File 'lib/fog/vcloud/mock_data_classes.rb', line 640

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

#portObject



620
621
622
# File 'lib/fog/vcloud/mock_data_classes.rb', line 620

def port
  0
end

#protocolObject



616
617
618
# File 'lib/fog/vcloud/mock_data_classes.rb', line 616

def protocol
  self[:protocol]
end

#redirect_urlObject



636
637
638
# File 'lib/fog/vcloud/mock_data_classes.rb', line 636

def redirect_url
  nil
end

#timeoutObject



628
629
630
# File 'lib/fog/vcloud/mock_data_classes.rb', line 628

def timeout
  self[:timeout] || 2
end