Class: Taskworld::Client
- Inherits:
-
Object
- Object
- Taskworld::Client
- Includes:
- Connection, Endpoints, Request
- Defined in:
- lib/taskworld/client.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#default_space_id ⇒ Object
Returns the value of attribute default_space_id.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#workspaces ⇒ Object
Returns the value of attribute workspaces.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints::Task
Methods included from Endpoints::Tasklist
Methods included from Endpoints::Project
Methods included from Request
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
19 20 21 22 |
# File 'lib/taskworld/client.rb', line 19 def initialize @endpoint ||= Config::ENDPOINTS.fetch(Config.server, Config::DEFAULT_ENDPONT) auth end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
7 8 9 |
# File 'lib/taskworld/client.rb', line 7 def access_token @access_token end |
#default_space_id ⇒ Object
Returns the value of attribute default_space_id.
7 8 9 |
# File 'lib/taskworld/client.rb', line 7 def default_space_id @default_space_id end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/taskworld/client.rb', line 7 def endpoint @endpoint end |
#workspaces ⇒ Object
Returns the value of attribute workspaces.
7 8 9 |
# File 'lib/taskworld/client.rb', line 7 def workspaces @workspaces end |
Class Method Details
.config ⇒ Object
14 15 16 |
# File 'lib/taskworld/client.rb', line 14 def config Config end |
.configure ⇒ Object
10 11 12 |
# File 'lib/taskworld/client.rb', line 10 def configure block_given? ? yield(Config) : Config end |