8 lines
135 B
Ruby
8 lines
135 B
Ruby
class Person < Hash
|
|
include ::CouchRest::CastedModel
|
|
property :name, :type => ['String']
|
|
|
|
def last_name
|
|
name.last
|
|
end
|
|
end |