Module: GS1::Validations::ClassMethods

Defined in:
lib/gs1/validations.rb

Overview

Adding validation class methods.

Instance Method Summary collapse

Instance Method Details

#valid_data?(data) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/gs1/validations.rb', line 20

def valid_data?(data)
  new(data).valid?
end