Class: Cafmal::Request::Get
- Inherits:
-
Object
- Object
- Cafmal::Request::Get
- 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, headers) ⇒ Get
constructor
A new instance of Get.
Constructor Details
#initialize(url, headers) ⇒ Get
Returns a new instance of Get.
18 19 20 |
# File 'lib/cafmal/request.rb', line 18 def initialize(url, headers) @response = HTTParty.get(url, headers: headers) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
16 17 18 |
# File 'lib/cafmal/request.rb', line 16 def response @response end |