Class: Fiscalizer::Serializers::Tax
- Inherits:
-
Object
- Object
- Fiscalizer::Serializers::Tax
- Defined in:
- lib/fiscalizer/serializers/tax.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#xml ⇒ Object
readonly
Returns the value of attribute xml.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(xml, object) ⇒ Tax
constructor
A new instance of Tax.
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
#object ⇒ Object (readonly)
Returns the value of attribute object.
9 10 11 |
# File 'lib/fiscalizer/serializers/tax.rb', line 9 def object @object end |
#xml ⇒ Object (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
#call ⇒ Object
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 |