class Aws::Rest::Response::StatusCode
def apply(http_resp, data)
-
data
(Hash, Struct
) -- -
http_resp
(Seahorse::Client::Http::Response
) --
def apply(http_resp, data) @rules.shape.members.each do |member_name, member_ref| if member_ref.location == 'statusCode' data[member_name] = http_resp.status_code end end end
def initialize(rules)
-
rules
(Seahorse::Model::Shapes::ShapeRef
) --
def initialize(rules) @rules = rules end