Sha256: 2547c2323a4eedb6fffec55fb5b1007191d307f5cc6f1acb0573767eb662b462

Contents?: true

Size: 961 Bytes

Versions: 4

Compression:

Stored size: 961 Bytes

Contents

class User < MotionPrime::BaseModel
  attributes :id, :name, :age, :created_at
end

class Plane < MotionPrime::BaseModel
  attributes :name, :age
end

class Listing < MotionPrime::BaseModel
  attribute :name
end

class Todo < MotionPrime::BaseModel
  attribute :title
  bag :items
end

class TodoItem < MotionPrime::BaseModel
  attribute :completed
  attribute :text
end

class Page < MotionPrime::BaseModel
  attribute :text
  attribute :index
end

class Animal < MotionPrime::BaseModel
  attribute :name
end

class Autobot < MotionPrime::BaseModel
  attribute :name
end

module CustomModule; end
class CustomModule::Car < MotionPrime::BaseModel
  attribute :name
  attribute :created_at
end
Car = CustomModule::Car

def stub_user(name, age, created_at)
  user = User.new
  user.name = name
  user.age  = age
  user.created_at = created_at
  user
end

def documents_path
  NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-prime-0.3.1 spec/helpers/models.rb
motion-prime-0.3.0 spec/helpers/models.rb
motion-prime-0.2.1 spec/helpers/models.rb
motion-prime-0.2.0 spec/helpers/models.rb