Class: Cafmal::Request::Post
- Inherits:
-
Object
- Object
- Cafmal::Request::Post
- 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) ⇒ Post
constructor
A new instance of Post.
Constructor Details
#initialize(url, body, headers) ⇒ Post
Returns a new instance of Post.
10 11 12 |
# File 'lib/cafmal/request.rb', line 10 def initialize(url, body, headers) @response = HTTParty.post(url, body: body, headers: headers) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/cafmal/request.rb', line 8 def response @response end |