Class: Pastvu::Request
- Inherits:
-
Object
- Object
- Pastvu::Request
- Defined in:
- lib/pastvu/request.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
- #build_uri ⇒ Object
-
#initialize(method, params) ⇒ Request
constructor
A new instance of Request.
- #request(uri) ⇒ Object
Constructor Details
#initialize(method, params) ⇒ Request
Returns a new instance of Request.
8 9 10 11 12 13 |
# File 'lib/pastvu/request.rb', line 8 def initialize(method, params) @method = method @params = params request(build_uri) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
6 7 8 |
# File 'lib/pastvu/request.rb', line 6 def response @response end |