Class: GiactVerification::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/giact_verification/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
10
# File 'lib/giact_verification/response.rb', line 5

def initialize(args)
  @raw_request     = args[:raw_request]
  @raw_response    = args[:raw_response]
  @parsed_response = args[:parsed_response]
  @success         = args[:success]
end

Instance Attribute Details

#parsed_responseObject (readonly)

Returns the value of attribute parsed_response.



3
4
5
# File 'lib/giact_verification/response.rb', line 3

def parsed_response
  @parsed_response
end

#raw_requestObject (readonly)

Returns the value of attribute raw_request.



3
4
5
# File 'lib/giact_verification/response.rb', line 3

def raw_request
  @raw_request
end

#raw_responseObject (readonly)

Returns the value of attribute raw_response.



3
4
5
# File 'lib/giact_verification/response.rb', line 3

def raw_response
  @raw_response
end

#successObject (readonly)

Returns the value of attribute success.



3
4
5
# File 'lib/giact_verification/response.rb', line 3

def success
  @success
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/giact_verification/response.rb', line 12

def success?
  success
end