Class: Cafmal::Request::Put
- Inherits:
-
Object
- Object
- Cafmal::Request::Put
- Defined in:
- lib/cafmal/request.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(url, body, headers) ⇒ Put
constructor
A new instance of Put.
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
#response ⇒ Object (readonly)
Returns the value of attribute response.
24 25 26 |
# File 'lib/cafmal/request.rb', line 24 def response @response end |