Class: AGCOD::Request
- Inherits:
-
Object
- Object
- AGCOD::Request
- Defined in:
- lib/aws_agcod/request.rb
Constant Summary collapse
- TIME_FORMAT =
'%Y%m%dT%H%M%SZ'
- MOCK_REQUEST_IDS =
%w(F0000 F2005)
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(httpable, action, params) ⇒ Request
constructor
httpable is anything that can have post called upon it; this allows passing in a proxy.
Constructor Details
#initialize(httpable, action, params) ⇒ Request
httpable is anything that can have post called upon it; this allows passing in a proxy
13 14 15 16 17 18 |
# File 'lib/aws_agcod/request.rb', line 13 def initialize(httpable, action, params) # httpable is anything that can have post called upon it; this allows passing in a proxy @action = action @params = sanitized_params(params) @response = Response.new(httpable.post(uri, body: body, headers: signed_headers).body) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/aws_agcod/request.rb', line 11 def response @response end |