Method: DynaModel::Response#initialize

Defined in:
lib/dyna_model/response.rb

#initialize(response) ⇒ Response

Returns a new instance of Response.

Raises:

  • (ArgumentError)


4
5
6
7
# File 'lib/dyna_model/response.rb', line 4

def initialize(response)
  raise ArgumentError, "response should be an AWS::Core::Response" unless response.is_a?(AWS::Core::Response)
  @raw_response = response
end