Module: ConohaApi::Connection
Instance Attribute Summary collapse
Attributes included from Configurable
#api_endpoint, #connection_options, #login, #middleware, #password, #proxy, #raise_error, #tenant_id
#token_expire_time
Instance Method Summary
collapse
#configure, keys
#ready_for_authentication?, #token_expired?, #token_expires
Instance Attribute Details
#current_connection ⇒ Object
Returns the value of attribute current_connection.
6
7
8
|
# File 'lib/conoha_api/connection.rb', line 6
def current_connection
@current_connection
end
|
Instance Method Details
#delete(path, options = {}) ⇒ Object
19
20
21
|
# File 'lib/conoha_api/connection.rb', line 19
def delete(path, options = {})
request(:delete, path, nil, options)
end
|
#get(path, options = {}) ⇒ Object
11
12
13
|
# File 'lib/conoha_api/connection.rb', line 11
def get(path, options = {})
request(:get, path, nil, options)
end
|
#post(path, data, options = {}) ⇒ Object
23
24
25
|
# File 'lib/conoha_api/connection.rb', line 23
def post(path, data, options = {})
request(:post, path, data, options)
end
|
#put(path, data, options = {}) ⇒ Object
15
16
17
|
# File 'lib/conoha_api/connection.rb', line 15
def put(path, data, options = {})
request(:put, path, data, options)
end
|