Sha256: dcedfe821805957cca813656d07df923a2be2f0301a6fda9f3ac066e04efd42d

Contents?: true

Size: 161 Bytes

Versions: 2

Compression:

Stored size: 161 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

2 entries across 2 versions & 1 rubygems

Version Path
couchrest_model-2.2.0.beta2 spec/fixtures/models/person.rb
couchrest_model-2.2.0.beta1 spec/fixtures/models/person.rb