Sha256: 0aa4b1e90c1114f529db182337a425b1ecb79d73ed5a689de359b6eb152f62ab
Contents?: true
Size: 666 Bytes
Versions: 14
Compression:
Stored size: 666 Bytes
Contents
module Xsys module Model class CorporationTax def self.attr_list [:cuit, :tax_kind_code, :tax_kind_name, :quotient, :amount, :use_default_value] end attr_reader *attr_list def initialize(attributes={}) self.cuit = attributes['cuit'] self.tax_kind_code = attributes['tax_kind_code'] self.tax_kind_name = attributes['tax_kind_name'] self.quotient = BigDecimal.new(attributes['quotient']) self.amount = BigDecimal.new(attributes['amount']) rescue nil self.use_default_value = attributes['use_default_value'] end private attr_writer *attr_list end end end
Version data entries
14 entries across 14 versions & 1 rubygems