Class: Aliquot::Validator::EncryptedMessageValidator

Inherits:
Object
  • Object
show all
Includes:
InstanceMethods
Defined in:
lib/aliquot/validator.rb

Overview

Class for validating the encryptedMessage component of a Google Pay token

Defined Under Namespace

Classes: Error

Instance Attribute Summary

Attributes included from InstanceMethods

#output

Instance Method Summary collapse

Methods included from InstanceMethods

#error_list, #errors, #valid?, #validate

Constructor Details

#initialize(input) ⇒ EncryptedMessageValidator

Returns a new instance of EncryptedMessageValidator.



315
316
317
318
# File 'lib/aliquot/validator.rb', line 315

def initialize(input)
  @input = input
  @schema = EncryptedMessageContract.new
end