Module: TaskHelper::API
- Extended by:
- API
- Included in:
- API
- Defined in:
- lib/task_helper/api.rb,
lib/task_helper/api/call.rb,
lib/task_helper/api/cache.rb
Defined Under Namespace
Constant Summary collapse
- BASE_URL =
'https://mytaskhelper.com'
Class Attribute Summary collapse
-
.rest_api_key ⇒ Object
Returns the value of attribute rest_api_key.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.rest_api_key ⇒ Object
Returns the value of attribute rest_api_key.
6 7 8 |
# File 'lib/task_helper/api.rb', line 6 def rest_api_key @rest_api_key end |
Class Method Details
.extended(base) ⇒ Object
17 18 19 |
# File 'lib/task_helper/api.rb', line 17 def self.extended(base) base.set_cache end |
Instance Method Details
#get(args) ⇒ Object
9 10 11 |
# File 'lib/task_helper/api.rb', line 9 def get(args) @cache.get(args) end |
#set_cache(args = {}) ⇒ Object
13 14 15 |
# File 'lib/task_helper/api.rb', line 13 def set_cache(args={}) @cache = Cache.new(args) end |