lib/hyper_resource/modules/http.rb
## PATCHes this resource's changed attributes to this resource's href,
## and returns the response resource.  If attributes are given, +patch+
## uses those instead.
PATCHes this resource's changed attributes to this resource's href,
and returns the response resource.  If attributes are given, +patch+
uses those instead.
PATCHes this resource ' s changed attributes to this resource ' s href and returns the response resource . If attributes are given + patch + uses those instead .
def patch(attrs=nil)
        attrs ||= self.attributes.changed_attributes
        self.response = faraday_connection.patch do |req|
          req.body = adapter.serialize(attrs)
        end
        finish_up
      end
def patch ( attrs = nil ) attrs ||= self . attributes . changed_attributes self . response = faraday_connection . patch do | req | req . body = adapter . serialize ( attrs ) end finish_up end
PATCHes this resource's changed attributes to this resource's href,
and returns the response resource.
PATCHes this resource ' s changed attributes to this resource ' s href and returns the response resource .
attrs