Module: Her::Model::ORM

Defined in:
lib/her_extension/model/orm.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#put(attrs) ⇒ Object

Send raw PUT request to model - no data encapsulation performed



12
13
14
15
16
17
# File 'lib/her_extension/model/orm.rb', line 12

def put(attrs)
  method = :put
  self.class.request(attrs.merge(:_method => method, :_path => request_path)) do |parsed_data, response|
    return parsed_data
  end
end