Sha256: 084540368b9474810915d679506fabf93e7649e2718586ba6223d64ba5b17c0a

Contents?: true

Size: 518 Bytes

Versions: 8

Compression:

Stored size: 518 Bytes

Contents

module Xsys
  module Model
    class InvoiceKind
      def self.attr_list
        [
          :code, :shop_code, :sale_point_code, :receipt_identifier, :name, :description,
          :letter, :invoice_method, :invoice_operation, :operation_sign, :has_taxes
        ]
      end

      attr_reader *attr_list

      def initialize(attributes={})
        attributes.each do |k, v|
          self.send("#{k}=", v) if self.respond_to?(k)
        end
      end

      private

      attr_writer *attr_list
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xsys-0.43.0 lib/xsys/model/invoice_kind.rb
xsys-0.42.0 lib/xsys/model/invoice_kind.rb
xsys-0.41.0 lib/xsys/model/invoice_kind.rb
xsys-0.40.0 lib/xsys/model/invoice_kind.rb
xsys-0.39.0 lib/xsys/model/invoice_kind.rb
xsys-0.38.0 lib/xsys/model/invoice_kind.rb
xsys-0.37.0 lib/xsys/model/invoice_kind.rb
xsys-0.36.0 lib/xsys/model/invoice_kind.rb