Sha256: 00cebd28db28ebedd149308b9b441ef440ab11eaa54daeb820af7a50df34247d

Contents?: true

Size: 191 Bytes

Versions: 2

Compression:

Stored size: 191 Bytes

Contents

class Person
  include Ashikawa::AR::Model

  attribute :name
  attribute :age, Integer
  attribute :favorite_color

  validates_presence_of :name, :age
  validates_numericalness_of :age
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ashikawa-ar-0.1.3 spec/examples/person.rb
ashikawa-ar-0.1.2 spec/examples/person.rb