Sha256: 62c822af32ecccf3d3d8c260d632e23438050cb071d59fac2e1f6c7b0c406466

Contents?: true

Size: 160 Bytes

Versions: 14

Compression:

Stored size: 160 Bytes

Contents

require 'cat'

class Person
  include ::CouchRest::Model::Embeddable
  property :pet, Cat
  property :name, [String]
  
  def last_name
    name.last
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
couchrest_model-2.1.0.rc1 spec/fixtures/models/person.rb
couchrest_model-2.1.0.beta2 spec/fixtures/models/person.rb
couchrest_model-2.1.0.beta1 spec/fixtures/models/person.rb
couchrest_model-2.0.4 spec/fixtures/models/person.rb
couchrest_model-2.0.3 spec/fixtures/models/person.rb
couchrest_model-2.0.1 spec/fixtures/models/person.rb
couchrest_model-2.0.0 spec/fixtures/models/person.rb
couchrest_model-2.0.0.beta2 spec/fixtures/models/person.rb
couchrest_model-2.0.0.beta spec/fixtures/models/person.rb
couchrest_model-1.2.0.beta spec/fixtures/models/person.rb
openlogic-couchrest_model-1.0.0 spec/fixtures/models/person.rb
couchrest_model-1.1.2 spec/fixtures/models/person.rb
couchrest_model-1.1.1 spec/fixtures/models/person.rb
couchrest_model-1.1.0 spec/fixtures/models/person.rb