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