Class: Trello::Configuration
- Inherits:
-
Object
- Object
- Trello::Configuration
- Defined in:
- lib/trello-lite/configuration.rb
Constant Summary collapse
- CONFIG_ATTRIBUTES =
[ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ]
Instance Method Summary collapse
-
#attributes=(attrs = {}) ⇒ Object
this only works if you pass values through a block.
-
#initialize(attrs = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(attrs = {}) ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 |
# File 'lib/trello-lite/configuration.rb', line 12 def initialize(attrs = {}) @attributes = attrs end |
Instance Method Details
#attributes=(attrs = {}) ⇒ Object
this only works if you pass values through a block
17 18 19 |
# File 'lib/trello-lite/configuration.rb', line 17 def attributes=(attrs = {}) attrs.each { |key, value| instance_variable_set("@#{key}", value) } end |