Class: Fiscalizer::Serializers::Tax

Inherits:
Object
  • Object
show all
Defined in:
lib/fiscalizer/serializers/tax.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(xml, object) ⇒ Tax

Returns a new instance of Tax.



4
5
6
7
# File 'lib/fiscalizer/serializers/tax.rb', line 4

def initialize(xml, object)
  @xml = xml
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



9
10
11
# File 'lib/fiscalizer/serializers/tax.rb', line 9

def object
  @object
end

#xmlObject (readonly)

Returns the value of attribute xml.



9
10
11
# File 'lib/fiscalizer/serializers/tax.rb', line 9

def xml
  @xml
end

Instance Method Details

#callObject



11
12
13
14
15
16
# File 'lib/fiscalizer/serializers/tax.rb', line 11

def call
  add_vat_tax
  add_spending_tax
  add_other_taxes
  add_general_tax_info
end