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
633
634
635
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 633
def description
self[:description] || "Description for Backup Service #{name}"
end
|
#enabled ⇒ Object
625
626
627
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 625
def enabled
self[:enabled].to_s.downcase != "false"
end
|
#name ⇒ Object
613
614
615
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 613
def name
self[:name] || "Backup Internet Service #{object_id}"
end
|
#node_collection ⇒ Object
#port ⇒ Object
621
622
623
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 621
def port
0
end
|
#protocol ⇒ Object
617
618
619
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 617
def protocol
self[:protocol]
end
|
#redirect_url ⇒ Object
637
638
639
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 637
def redirect_url
nil
end
|
#timeout ⇒ Object
629
630
631
|
# File 'lib/fog/ecloud/mock_data_classes.rb', line 629
def timeout
self[:timeout] || 2
end
|