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