Class: Fog::Terremark::Vcloud::Mock
- Inherits:
-
Object
- Object
- Fog::Terremark::Vcloud::Mock
- Includes:
- Shared::Mock, Shared::Parser
- Defined in:
- lib/fog/terremark/vcloud.rb
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(option = {}) ⇒ Mock
constructor
A new instance of Mock.
- #reset_data ⇒ Object
Methods included from Shared::Parser
Methods included from Shared::Mock
#addresses, error_headers, #get_network, #get_organization, #get_organizations, #get_public_ips, #get_vdc, headers, #images, #internetservices, mock_data, #networks, #nodeservices, #servers, status, #tasks, unathorized_status, #vdcs
Methods included from Shared::Common
Constructor Details
#initialize(option = {}) ⇒ Mock
Returns a new instance of Mock.
112 113 114 115 116 117 118 119 |
# File 'lib/fog/terremark/vcloud.rb', line 112 def initialize(option = {}) super @base_url = Fog::Terremark::Vcloud::Defaults::SCHEME + "://" + Fog::Terremark::Vcloud::Defaults::HOST + Fog::Terremark::Vcloud::Defaults::PATH @terremark_username = [:terremark_vcloud_username] end |
Instance Method Details
#data ⇒ Object
121 122 123 |
# File 'lib/fog/terremark/vcloud.rb', line 121 def data self.class.data[@terremark_username] end |
#reset_data ⇒ Object
125 126 127 |
# File 'lib/fog/terremark/vcloud.rb', line 125 def reset_data self.class.data.delete(@terremark_username) end |