Class: Spree::Tax::ItemTax
- Inherits:
-
Object
- Object
- Spree::Tax::ItemTax
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/spree/tax/item_tax.rb
Overview
Instance Attribute Summary collapse
-
#amount ⇒ BigDecimal
the amount of tax applied to the item.
-
#included_in_price ⇒ Boolean
whether the amount is included in the items price, or additional tax.
- #item_id ⇒ Integer
-
#label ⇒ String
information about the taxes.
-
#tax_rate ⇒ Spree::TaxRate
will be used as the source for tax adjustments.
Instance Attribute Details
#amount ⇒ BigDecimal
the amount of tax applied to the item
18 19 20 |
# File 'app/models/spree/tax/item_tax.rb', line 18 def amount @amount end |
#included_in_price ⇒ Boolean
whether the amount is included in the items price, or additional tax.
18 19 20 |
# File 'app/models/spree/tax/item_tax.rb', line 18 def included_in_price @included_in_price end |
#item_id ⇒ Integer
18 19 20 |
# File 'app/models/spree/tax/item_tax.rb', line 18 def item_id @item_id end |
#label ⇒ String
information about the taxes
18 19 20 |
# File 'app/models/spree/tax/item_tax.rb', line 18 def label @label end |
#tax_rate ⇒ Spree::TaxRate
will be used as the source for tax adjustments
18 19 20 |
# File 'app/models/spree/tax/item_tax.rb', line 18 def tax_rate @tax_rate end |