Class: RedboothRuby::Client
- Inherits:
-
Object
- Object
- RedboothRuby::Client
- Defined in:
- lib/redbooth-ruby/client.rb
Constant Summary collapse
- RESOURCES =
[:me, :user, :task, :organization, :person, :project, :conversation, :membership]
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#session ⇒ Object
readonly
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session, options = {}) ⇒ Client
constructor
Creates an client object using the given Redbooth session.
Constructor Details
#initialize(session, options = {}) ⇒ Client
Creates an client object using the given Redbooth session. existing account.
11 12 13 14 15 16 |
# File 'lib/redbooth-ruby/client.rb', line 11 def initialize(session, ={}) raise RedboothRuby::AuthenticationError unless session.valid? @session = session = self end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/redbooth-ruby/client.rb', line 5 def end |
#session ⇒ Object (readonly)
Returns the value of attribute session.
5 6 7 |
# File 'lib/redbooth-ruby/client.rb', line 5 def session @session end |