Class: Fog::Terremark::Vcloud::Mock
Instance Method Summary
collapse
#parse
#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
#default_organization_id
Constructor Details
#initialize(option = {}) ⇒ Mock
112
113
114
115
116
117
118
119
|
# File 'lib/fog/terremark/vcloud.rb', line 112
def initialize(option = {})
super
@base_url = Fog::::Vcloud::Defaults::SCHEME + "://" +
Fog::::Vcloud::Defaults::HOST +
Fog::::Vcloud::Defaults::PATH
= options[: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[]
end
|
#reset_data ⇒ Object
125
126
127
|
# File 'lib/fog/terremark/vcloud.rb', line 125
def reset_data
self.class.data.delete()
end
|