Module: Zaim::Configuration
Constant Summary collapse
- OptionKeys =
[ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ]
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
writeonly
Sets the attribute consumer_secret.
-
#oauth_token ⇒ Object
writeonly
Sets the attribute oauth_token.
-
#oauth_token_secret ⇒ Object
writeonly
Sets the attribute oauth_token_secret.
Instance Method Summary collapse
Instance Attribute Details
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
7 8 9 |
# File 'lib/zaim/configuration.rb', line 7 def consumer_key @consumer_key end |
#consumer_secret=(value) ⇒ Object (writeonly)
Sets the attribute consumer_secret
6 7 8 |
# File 'lib/zaim/configuration.rb', line 6 def consumer_secret=(value) @consumer_secret = value end |
#oauth_token=(value) ⇒ Object (writeonly)
Sets the attribute oauth_token
6 7 8 |
# File 'lib/zaim/configuration.rb', line 6 def oauth_token=(value) @oauth_token = value end |
#oauth_token_secret=(value) ⇒ Object (writeonly)
Sets the attribute oauth_token_secret
6 7 8 |
# File 'lib/zaim/configuration.rb', line 6 def oauth_token_secret=(value) @oauth_token_secret = value end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 12 |
# File 'lib/zaim/configuration.rb', line 9 def configure yield self self end |