Class: Cafmal::Request::Put

Inherits:
Object
  • Object
show all
Defined in:
lib/cafmal/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, body, headers) ⇒ Put

Returns a new instance of Put.



26
27
28
# File 'lib/cafmal/request.rb', line 26

def initialize(url, body, headers)
  @response = HTTParty.put(url, body: body, headers: headers)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



24
25
26
# File 'lib/cafmal/request.rb', line 24

def response
  @response
end