Class: RedboothRuby::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/redbooth-ruby/client.rb

Constant Summary collapse

RESOURCES =
[:me, :user, :task, :organization, :person, :project, :conversation, :membership]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(session, options = {}) ⇒ Client

Creates an client object using the given Redbooth session. existing account.

Parameters:

  • client (String)

    object to use the redbooth api.

Raises:



11
12
13
14
15
16
# File 'lib/redbooth-ruby/client.rb', line 11

def initialize(session, options={})
  raise RedboothRuby::AuthenticationError unless session.valid?
  @session = session
  @options = options
  self
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/redbooth-ruby/client.rb', line 5

def options
  @options
end

#sessionObject (readonly)

Returns the value of attribute session.



5
6
7
# File 'lib/redbooth-ruby/client.rb', line 5

def session
  @session
end