Class: Taskrabbit::Location

Inherits:
Smash
  • Object
show all
Defined in:
lib/taskrabbit/location.rb

Constant Summary

Constants included from Transformer

Transformer::TIME_TRANSFORMER

Instance Attribute Summary

Attributes inherited from Smash

#api, #loaded

Class Method Summary collapse

Methods inherited from Smash

#[], #fetch, filtered_options, find, #initialize, #redirect?, #redirect_url, #reload, #request, #valid?

Methods included from Association

included

Constructor Details

This class inherits a constructor from Taskrabbit::Smash

Class Method Details

.all(scope, options = {}) ⇒ Object



15
16
17
# File 'lib/taskrabbit/location.rb', line 15

def all(scope, options = {})
  scope.request('get', scope.association_path(self), Api::collection_transformers[self], options)
end