Class: Task

Inherits:
Object
  • Object
show all
Includes:
MotionModel::ArrayModelAdapter, MotionModel::Model, MotionModelResource::ApiWrapper
Defined in:
app/app_delegate.rb

Class Method Summary collapse

Methods included from MotionModelResource::ApiWrapper

#buildHashFromModel, #build_hash_from_model, #destroy, #destroy!, #destroy_remote, #fetch, included, #parseValue, #parse_value, #save, #save_remote, #touch_sync, #wrap

Class Method Details

.urlObject



9
10
11
# File 'app/app_delegate.rb', line 9

def self.url
  "http://example.com/tasks"
end

.wrapperObject



13
14
15
16
17
18
19
20
21
22
# File 'app/app_delegate.rb', line 13

def self.wrapper
  @wrapper ||= {
    fields: {
      id:       :id,
      user_id:  :user_id,
      name:     :name,
    },
    relations: [:user]
  }
end