Class: Fog::Vcloud::MockDataClasses::MockBackupInternetService
- Inherits:
-
Base
- Object
- Hash
- Base
- Fog::Vcloud::MockDataClasses::MockBackupInternetService
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
Instance Method Details
#description ⇒ Object
632
633
634
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 632
def description
self[:description] || "Description for Backup Service #{name}"
end
|
#enabled ⇒ Object
624
625
626
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 624
def enabled
self[:enabled].to_s.downcase != "false"
end
|
#name ⇒ Object
612
613
614
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 612
def name
self[:name] || "Backup Internet Service #{object_id}"
end
|
#node_collection ⇒ Object
#port ⇒ Object
620
621
622
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 620
def port
0
end
|
#protocol ⇒ Object
616
617
618
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 616
def protocol
self[:protocol]
end
|
#redirect_url ⇒ Object
636
637
638
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 636
def redirect_url
nil
end
|
#timeout ⇒ Object
628
629
630
|
# File 'lib/fog/vcloud/mock_data_classes.rb', line 628
def timeout
self[:timeout] || 2
end
|