Module: Goraku::Configurable

Included in:
Client
Defined in:
lib/goraku/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/goraku/configurable.rb', line 4

def api_endpoint
  @api_endpoint
end

#connection_optionsObject (readonly)

Returns the value of attribute connection_options.



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

def connection_options
  @connection_options
end

#loginObject (readonly)

Returns the value of attribute login.



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

def 
  @login
end

#middlewareObject (readonly)

Returns the value of attribute middleware.



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

def middleware
  @middleware
end

#passwordObject (readonly)

Returns the value of attribute password.



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

def password
  @password
end

#proxyObject (readonly)

Returns the value of attribute proxy.



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

def proxy
  @proxy
end

#raise_errorObject (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

.keysObject



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

Yields:

  • (_self)

Yield Parameters:



21
22
23
# File 'lib/goraku/configurable.rb', line 21

def configure
  yield self
end