Class: Yp::Response
- Inherits:
-
Object
- Object
- Yp::Response
- Defined in:
- lib/response.rb,
lib/response/error.rb,
lib/response/parser.rb,
lib/response/validator.rb,
lib/response/error_logger.rb,
lib/response/gateway_error.rb,
lib/response/validator/gateway.rb,
lib/response/validator/acquirer.rb,
lib/response/validator/signing_key.rb
Defined Under Namespace
Classes: DeclinedError, ErrorLogger, GatewayError, InvalidFieldError, InvalidSignatureError, MissingFieldError, MissingResponseCodeError, MissingResponseMessageError, MissingSignatureError, Parser, ValidationError, Validator
Instance Method Summary collapse
-
#initialize(signature, params, logger) ⇒ Response
constructor
A new instance of Response.
- #parse_and_validate ⇒ Object
Constructor Details
#initialize(signature, params, logger) ⇒ Response
Returns a new instance of Response.
8 9 10 11 12 |
# File 'lib/response.rb', line 8 def initialize(signature, params, logger) @signature = signature @params = params @logger = logger end |
Instance Method Details
#parse_and_validate ⇒ Object
14 15 16 17 |
# File 'lib/response.rb', line 14 def parse_and_validate validate! parsed end |