Class: Fog::Terremark::Vcloud::Mock
- Inherits:
-
Compute::Terremark::Mock
- Object
- Compute::Terremark::Mock
- Fog::Terremark::Vcloud::Mock
- Defined in:
- lib/fog/terremark/vcloud/mock.rb
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(option = {}) ⇒ Mock
constructor
A new instance of Mock.
- #reset_data ⇒ Object
Methods inherited from Compute::Terremark::Mock
error_headers, #get_network, #get_organization, #get_public_ips, #get_vdc, headers, mock_data, #org_fixture, #organizations, status, unathorized_status
Methods included from Compute::Terremark::Common
Constructor Details
#initialize(option = {}) ⇒ Mock
Returns a new instance of Mock.
5 6 7 8 9 10 11 12 |
# File 'lib/fog/terremark/vcloud/mock.rb', line 5 def initialize(option = {}) super @base_url = Fog::Terremark::Vcloud::SCHEME + "://" + Fog::Terremark::Vcloud::HOST + Fog::Terremark::Vcloud::PATH @terremark_username = [:terremark_vcloud_username] end |
Instance Method Details
#data ⇒ Object
14 15 16 |
# File 'lib/fog/terremark/vcloud/mock.rb', line 14 def data self.class.data[@terremark_username] end |
#reset_data ⇒ Object
18 19 20 |
# File 'lib/fog/terremark/vcloud/mock.rb', line 18 def reset_data self.class.data.delete(@terremark_username) end |