Class: Organizai::Api
- Inherits:
-
Object
- Object
- Organizai::Api
- Defined in:
- lib/organizai/api.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #coupon(action, *options) ⇒ Object
-
#initialize(token = nil, secret = nil) ⇒ Api
constructor
A new instance of Api.
- #user(action, *options) ⇒ Object
Constructor Details
#initialize(token = nil, secret = nil) ⇒ Api
Returns a new instance of Api.
6 7 8 9 |
# File 'lib/organizai/api.rb', line 6 def initialize(token=nil,secret=nil) @token = OAuth::Token.new(token,secret) raise "You must install the initializer before using Organizaí. Run 'rails g organizai:install'." unless Organizai.configured? end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
4 5 6 |
# File 'lib/organizai/api.rb', line 4 def token @token end |