Sha256: 95071b758d7cbbb1f312cc27ea902d06acc4d397c3459542e38a75e0e9992817
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
require "fortnox/api/validators/base" module Fortnox module API module Validator class EmailInformation < Fortnox::API::Validator::Base using_validations do validates_length_of :email_address_to, length: 0..1024, if: :email_address_to? validates_length_of :email_address_cc, length: 0..1024, if: :email_address_cc? validates_length_of :email_address_bcc, length: 0..1024, if: :email_address_bcc? validates_length_of :email_subject, length: 0..100, if: :email_subject? validates_length_of :email_body, length: 0..20000, if: :email_body? end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fortnox-api-0.1.0 | lib/fortnox/api/validators/email_information.rb |