Module: CrunchApi
- Defined in:
- lib/crunch-api.rb,
lib/crunch-api/default.rb,
lib/crunch-api/version.rb,
lib/crunch-api/supplier.rb
Defined Under Namespace
Modules: Default Classes: Supplier
Constant Summary collapse
- VERSION =
"0.0.2"
Class Attribute Summary collapse
-
.consumer_key ⇒ Object
writeonly
Sets the attribute consumer_key.
-
.consumer_secret ⇒ Object
writeonly
Sets the attribute consumer_secret.
-
.endpoint ⇒ Object
writeonly
Sets the attribute endpoint.
-
.oauth_token ⇒ Object
writeonly
Sets the attribute oauth_token.
-
.oauth_token_secret ⇒ Object
writeonly
Sets the attribute oauth_token_secret.
Class Method Summary collapse
Class Attribute Details
.consumer_key=(value) ⇒ Object (writeonly)
Sets the attribute consumer_key
7 8 9 |
# File 'lib/crunch-api.rb', line 7 def consumer_key=(value) @consumer_key = value end |
.consumer_secret=(value) ⇒ Object (writeonly)
Sets the attribute consumer_secret
7 8 9 |
# File 'lib/crunch-api.rb', line 7 def consumer_secret=(value) @consumer_secret = value end |
.endpoint=(value) ⇒ Object (writeonly)
Sets the attribute endpoint
7 8 9 |
# File 'lib/crunch-api.rb', line 7 def endpoint=(value) @endpoint = value end |
.oauth_token=(value) ⇒ Object (writeonly)
Sets the attribute oauth_token
7 8 9 |
# File 'lib/crunch-api.rb', line 7 def oauth_token=(value) @oauth_token = value end |
.oauth_token_secret=(value) ⇒ Object (writeonly)
Sets the attribute oauth_token_secret
7 8 9 |
# File 'lib/crunch-api.rb', line 7 def oauth_token_secret=(value) @oauth_token_secret = value end |
Class Method Details
.configure {|_self| ... } ⇒ Object
19 20 21 22 |
# File 'lib/crunch-api.rb', line 19 def configure yield self self end |
.keys ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/crunch-api.rb', line 9 def keys @keys ||= [ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret, :endpoint ] end |