Sha256: a6729aeb19a03d10c7df986f27c97d5f3ff35f762f93197d5800f642fd2becf7

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

module Einvoice
  module Model
    class CustomerDefined < Einvoice::Model::Base
      attr_accessor :project_no, :purchase_no, :stamp_duty_flag

      validates :project_no, length: { maximum: 64 }
      validates :purchase_no, length: { maximum: 64 }
      validates :stamp_duty_flag, length: { maximum: 1 }

      def initialize(attributes={})
        attributes.each do |attribute, value|
          instance_variable_set("@#{attribute}", value) if respond_to?(attribute.to_sym)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
einvoice-0.1.0 lib/einvoice/model/customer_defined.rb