Module: ACTV::Configurable

Included in:
ACTV, Client
Defined in:
lib/actv/configurable.rb

Constant Summary collapse

CONFIG_KEYS =
[
  :connection_options,
  :endpoint,
  :media_endpoint,
  :middleware,
  :search_endpoint,
  :api_key
]
AUTH_KEYS =
[
  :consumer_key,
  :consumer_secret,
  :oauth_token,
  :oauth_token_secret,
]

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.keysObject



32
33
34
# File 'lib/actv/configurable.rb', line 32

def keys
  @keys ||= CONFIG_KEYS + AUTH_KEYS
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Convenience method to allow configuration options to be set in a block

Yields:

  • (_self)

Yield Parameters:



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

def configure
  yield self
  self
end