Module: ACTV::Configurable
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
-
#configure {|_self| ... } ⇒ Object
Convenience method to allow configuration options to be set in a block.
Class Method Details
.keys ⇒ Object
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
5 6 7 8 |
# File 'lib/actv/configurable.rb', line 5 def configure yield self self end |