Module: ConohaApi::Configurable

Included in:
Client, Connection
Defined in:
lib/conoha_api/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_endpointObject (readonly)

Returns the value of attribute api_endpoint.



4
5
6
# File 'lib/conoha_api/configurable.rb', line 4

def api_endpoint
  @api_endpoint
end

#connection_optionsObject (readonly)

Returns the value of attribute connection_options.



8
9
10
# File 'lib/conoha_api/configurable.rb', line 8

def connection_options
  @connection_options
end

#loginObject (readonly)

Returns the value of attribute login.



6
7
8
# File 'lib/conoha_api/configurable.rb', line 6

def 
  @login
end

#middlewareObject (readonly)

Returns the value of attribute middleware.



9
10
11
# File 'lib/conoha_api/configurable.rb', line 9

def middleware
  @middleware
end

#passwordObject (readonly)

Returns the value of attribute password.



7
8
9
# File 'lib/conoha_api/configurable.rb', line 7

def password
  @password
end

#proxyObject (readonly)

Returns the value of attribute proxy.



10
11
12
# File 'lib/conoha_api/configurable.rb', line 10

def proxy
  @proxy
end

#raise_errorObject (readonly)

Returns the value of attribute raise_error.



11
12
13
# File 'lib/conoha_api/configurable.rb', line 11

def raise_error
  @raise_error
end

#tenant_idObject (readonly)

Returns the value of attribute tenant_id.



5
6
7
# File 'lib/conoha_api/configurable.rb', line 5

def tenant_id
  @tenant_id
end

Class Method Details

.keysObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/conoha_api/configurable.rb', line 14

def keys
  @keys || [
    :api_endpoint,
    :tenant_id,
    :login,
    :password,
    :connection_options,
    :middleware,
    :proxy,
    :raise_error,
  ]
end

Instance Method Details

#configureObject



28
29
30
# File 'lib/conoha_api/configurable.rb', line 28

def configure
  yield
end