Method: JSONAPI::Consumer::Schema#add
- Defined in:
- lib/jsonapi/consumer/schema.rb
#add(name, options) ⇒ void
This method returns an undefined value.
Add a property to the schema
118 119 120 |
# File 'lib/jsonapi/consumer/schema.rb', line 118 def add(name, ) @properties[name.to_sym] = Property.new(name.to_sym, [:type], [:default]) end |