Class: AGCOD::Request

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



11
12
13
# File 'lib/aws_agcod/request.rb', line 11

def response
  @response
end