Class: Okonomi::Taskmanager::Client
- Inherits:
-
Object
- Object
- Okonomi::Taskmanager::Client
- Defined in:
- lib/okonomi/taskmanager/client.rb
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#jwt_token ⇒ Object
readonly
Returns the value of attribute jwt_token.
-
#tasks_url ⇒ Object
readonly
Returns the value of attribute tasks_url.
Instance Method Summary collapse
-
#initialize(base_url: nil, jwt_token: nil) ⇒ Client
constructor
A new instance of Client.
- #namespaces ⇒ Object
- #task_types ⇒ Object
- #tasks ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(base_url: nil, jwt_token: nil) ⇒ Client
Returns a new instance of Client.
15 16 17 18 |
# File 'lib/okonomi/taskmanager/client.rb', line 15 def initialize(base_url: nil, jwt_token: nil) @jwt_token = jwt_token || Okonomi::Taskmanager.jwt_token @base_url = base_url || Okonomi::Taskmanager.api_url end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
13 14 15 |
# File 'lib/okonomi/taskmanager/client.rb', line 13 def base_url @base_url end |
#jwt_token ⇒ Object (readonly)
Returns the value of attribute jwt_token.
13 14 15 |
# File 'lib/okonomi/taskmanager/client.rb', line 13 def jwt_token @jwt_token end |
#tasks_url ⇒ Object (readonly)
Returns the value of attribute tasks_url.
13 14 15 |
# File 'lib/okonomi/taskmanager/client.rb', line 13 def tasks_url @tasks_url end |
Instance Method Details
#namespaces ⇒ Object
20 21 22 23 24 25 |
# File 'lib/okonomi/taskmanager/client.rb', line 20 def namespaces @namespaces ||= Okonomi::Taskmanager::Namespaces.new( base_url: base_url, jwt_token: jwt_token ) end |
#task_types ⇒ Object
27 28 29 30 31 32 |
# File 'lib/okonomi/taskmanager/client.rb', line 27 def task_types @task_types ||= Okonomi::Taskmanager::TaskTypes.new( base_url: base_url, jwt_token: jwt_token ) end |
#tasks ⇒ Object
34 35 36 37 38 39 |
# File 'lib/okonomi/taskmanager/client.rb', line 34 def tasks @tasks ||= Okonomi::Taskmanager::Tasks.new( base_url: base_url, jwt_token: jwt_token ) end |
#users ⇒ Object
41 42 43 44 45 46 |
# File 'lib/okonomi/taskmanager/client.rb', line 41 def users @users ||= Okonomi::Taskmanager::Users.new( base_url: base_url, jwt_token: jwt_token ) end |