Class: Belpost::Validation::ParcelSchema

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
lib/belpost/validations/parcel_schema.rb

Overview

Validation schema for parcel_data rubocop:disable Metrics/BlockLength

Class Method Summary collapse

Class Method Details

.call(params) ⇒ Object

Add class method to make it compatible with the tests



163
164
165
# File 'lib/belpost/validations/parcel_schema.rb', line 163

def self.call(params)
  new.call(params)
end