Sha256: a3fb59be0b097b4eb60fc1bc47365bc0593b2cf7633b54350dc69a85ccee4681
Contents?: true
Size: 1.07 KB
Versions: 22
Compression:
Stored size: 1.07 KB
Contents
class User < MotionPrime::Model attributes :name, :age, :birthday timestamp_attributes end class Plane < MotionPrime::Model attributes :name, :age 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 Organization < MotionPrime::Model attribute :name has_many :projects end class Project < MotionPrime::Model attribute :title end class Autobot < MotionPrime::Model attribute :name attribute :uid, type: :integer attribute :release_at, type: :time attribute :strength, type: :float end module CustomModule; end class CustomModule::Car < MotionPrime::Model attribute :name attribute :created_at end Car = CustomModule::Car def stub_user(name, age, birthday, id = nil) user = User.new user.id = id || 1 user.name = name user.age = age user.birthday = birthday user end def documents_path NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0] end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.8.12 | spec/helpers/models.rb |
motion-prime-0.8.11 | spec/helpers/models.rb |