Module: ActOn::Configurable
- Included in:
- ActOn
- Defined in:
- lib/act-on/configurable.rb
Constant Summary collapse
- CONFIG_KEYS =
[ :url, :access_token, :client_id, :client_secret, :username, :password, ]
Class Method Summary collapse
Instance Method Summary collapse
-
#client(options = {}) ⇒ ActOn::Client
Delegate to a ActOn::Client.
-
#configure {|_self| ... } ⇒ Object
Convenience method to allow configuration options to be set in a block.
Class Method Details
.keys ⇒ Object
21 22 23 |
# File 'lib/act-on/configurable.rb', line 21 def keys @keys ||= CONFIG_KEYS end |
Instance Method Details
#client(options = {}) ⇒ ActOn::Client
Delegate to a ActOn::Client
29 30 31 |
# File 'lib/act-on/configurable.rb', line 29 def client(={}) ::ActOn::Client.new() end |
#configure {|_self| ... } ⇒ Object
Convenience method to allow configuration options to be set in a block
5 6 7 8 |
# File 'lib/act-on/configurable.rb', line 5 def configure yield self self end |