Sha256: b7fcd2ff969283fbc1ae308eb09cba399d646a9e20588451d09ceb288bc4185b

Contents?: true

Size: 920 Bytes

Versions: 13

Compression:

Stored size: 920 Bytes

Contents

class User < MotionPrime::Model
  attributes :name, :age, :created_at
end

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

class Listing < MotionPrime::Model
  attribute :name
end

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

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

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

class Animal < MotionPrime::Model
  attribute :name
end

class Autobot < MotionPrime::Model
  attribute :name
end

module CustomModule; end
class CustomModule::Car < MotionPrime::Model
  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

13 entries across 13 versions & 1 rubygems

Version Path
motion-prime-0.8.0 spec/helpers/models.rb
motion-prime-0.7.2 spec/helpers/models.rb
motion-prime-0.7.1 spec/helpers/models.rb
motion-prime-0.7.0 spec/helpers/models.rb
motion-prime-0.6.0 spec/helpers/models.rb
motion-prime-0.5.7 spec/helpers/models.rb
motion-prime-0.5.6 spec/helpers/models.rb
motion-prime-0.5.5 spec/helpers/models.rb
motion-prime-0.5.4 spec/helpers/models.rb
motion-prime-0.5.3 spec/helpers/models.rb
motion-prime-0.5.2 spec/helpers/models.rb
motion-prime-0.5.1 spec/helpers/models.rb
motion-prime-0.5.0 spec/helpers/models.rb