Class: CalculationResponse
- Inherits:
-
ExactorResponse
- Object
- ExactorResponse
- CalculationResponse
- Defined in:
- app/helpers/exactor_api_objects.rb
Instance Attribute Summary collapse
-
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
-
#total_tax ⇒ Object
Returns the value of attribute total_tax.
Attributes inherited from ExactorResponse
Instance Method Summary collapse
- #add_line_item(id, inline_tax) ⇒ Object
- #get_line_item_tax(id) ⇒ Object
-
#initialize ⇒ CalculationResponse
constructor
A new instance of CalculationResponse.
Constructor Details
#initialize ⇒ CalculationResponse
Returns a new instance of CalculationResponse.
363 364 365 |
# File 'app/helpers/exactor_api_objects.rb', line 363 def initialize @line_items = {} end |
Instance Attribute Details
#invoice_id ⇒ Object
Returns the value of attribute invoice_id.
361 362 363 |
# File 'app/helpers/exactor_api_objects.rb', line 361 def invoice_id @invoice_id end |
#total_tax ⇒ Object
Returns the value of attribute total_tax.
361 362 363 |
# File 'app/helpers/exactor_api_objects.rb', line 361 def total_tax @total_tax end |
Instance Method Details
#add_line_item(id, inline_tax) ⇒ Object
367 368 369 |
# File 'app/helpers/exactor_api_objects.rb', line 367 def add_line_item(id, inline_tax) @line_items[id]=inline_tax end |
#get_line_item_tax(id) ⇒ Object
371 372 373 |
# File 'app/helpers/exactor_api_objects.rb', line 371 def get_line_item_tax(id) return @line_items[id] end |