Class: Aws::Rest::Response::StatusCode Private
- Inherits:
-
Object
- Object
- Aws::Rest::Response::StatusCode
- Defined in:
- lib/aws-sdk-core/rest/response/status_code.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #apply(http_resp, data) ⇒ Object private
-
#initialize(rules) ⇒ StatusCode
constructor
private
A new instance of StatusCode.
Constructor Details
#initialize(rules) ⇒ StatusCode
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of StatusCode.
7 8 9 |
# File 'lib/aws-sdk-core/rest/response/status_code.rb', line 7 def initialize(rules) @rules = rules end |
Instance Method Details
#apply(http_resp, data) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 |
# File 'lib/aws-sdk-core/rest/response/status_code.rb', line 13 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 |