Module: Goraku::Configurable
- Included in:
- Client
- Defined in:
- lib/goraku/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.
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/goraku/configurable.rb', line 4 def api_endpoint @api_endpoint end |
#connection_options ⇒ Object (readonly)
Returns the value of attribute connection_options.
5 6 7 |
# File 'lib/goraku/configurable.rb', line 5 def @connection_options end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
4 5 6 |
# File 'lib/goraku/configurable.rb', line 4 def login @login end |
#middleware ⇒ Object (readonly)
Returns the value of attribute middleware.
5 6 7 |
# File 'lib/goraku/configurable.rb', line 5 def middleware @middleware end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
4 5 6 |
# File 'lib/goraku/configurable.rb', line 4 def password @password end |
#proxy ⇒ Object (readonly)
Returns the value of attribute proxy.
5 6 7 |
# File 'lib/goraku/configurable.rb', line 5 def proxy @proxy end |
#raise_error ⇒ Object (readonly)
Returns the value of attribute raise_error.
6 7 8 |
# File 'lib/goraku/configurable.rb', line 6 def raise_error @raise_error end |
Class Method Details
.keys ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/goraku/configurable.rb', line 8 def keys @keys || [ :api_endpoint, :login, :password, :connection_options, :middleware, :proxy, :raise_error ] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
21 22 23 |
# File 'lib/goraku/configurable.rb', line 21 def configure yield self end |