Module: ConohaApi::Configurable
- Included in:
- Client, Connection
- Defined in:
- lib/conoha_api/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint ⇒ Object
readonly
Returns the value of attribute api_endpoint.
-
#connection_options ⇒ Object
readonly
Returns the value of attribute connection_options.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#middleware ⇒ Object
readonly
Returns the value of attribute middleware.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#proxy ⇒ Object
readonly
Returns the value of attribute proxy.
-
#raise_error ⇒ Object
readonly
Returns the value of attribute raise_error.
-
#tenant_id ⇒ Object
readonly
Returns the value of attribute tenant_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_endpoint ⇒ Object (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_options ⇒ Object (readonly)
Returns the value of attribute connection_options.
8 9 10 |
# File 'lib/conoha_api/configurable.rb', line 8 def end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
6 7 8 |
# File 'lib/conoha_api/configurable.rb', line 6 def login @login end |
#middleware ⇒ Object (readonly)
Returns the value of attribute middleware.
9 10 11 |
# File 'lib/conoha_api/configurable.rb', line 9 def middleware @middleware end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
7 8 9 |
# File 'lib/conoha_api/configurable.rb', line 7 def password @password end |
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
10 11 12 |
# File 'lib/conoha_api/configurable.rb', line 10 def proxy @proxy end |
#raise_error ⇒ Object (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_id ⇒ Object (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
.keys ⇒ Object
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
#configure ⇒ Object
28 29 30 |
# File 'lib/conoha_api/configurable.rb', line 28 def configure yield end |