Method: CouchRest::Property#initialize

Defined in:
lib/couchrest/more/property.rb

#initialize(name, type = nil, options = {}) ⇒ Property

attribute to define



8
9
10
11
12
13
# File 'lib/couchrest/more/property.rb', line 8

def initialize(name, type = nil, options = {})
  @name = name.to_s
  parse_type(type)
  parse_options(options)
  self
end