class Xsys::Model::CorporationTax

Public Class Methods

attr_list() click to toggle source
# File lib/xsys/model/corporation_tax.rb, line 4
def self.attr_list
  [:cuit, :tax_kind_code, :tax_kind_name, :quotient, :amount, :use_default_value]
end
new(attributes={}) click to toggle source
# File lib/xsys/model/corporation_tax.rb, line 10
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