Class: Taxes::GetTaxRate::Result
- Inherits:
-
Data
- Object
- Data
- Taxes::GetTaxRate::Result
- Defined in:
- app/services/taxes/get_tax_rate.rb
Instance Attribute Summary collapse
-
#country_iso ⇒ Object
readonly
Returns the value of attribute country_iso.
-
#freight_tax_collectable ⇒ Object
readonly
Returns the value of attribute freight_tax_collectable.
-
#line_items ⇒ Object
readonly
Returns the value of attribute line_items.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#rate_goods ⇒ Object
readonly
Returns the value of attribute rate_goods.
-
#rate_services ⇒ Object
readonly
Returns the value of attribute rate_services.
-
#rate_shipping ⇒ Object
readonly
Returns the value of attribute rate_shipping.
-
#retrieved_on ⇒ Object
readonly
Returns the value of attribute retrieved_on.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#tax_rate_id ⇒ Object
readonly
Returns the value of attribute tax_rate_id.
-
#tax_type ⇒ Object
readonly
Returns the value of attribute tax_type.
-
#taxable ⇒ Object
readonly
Returns the value of attribute taxable.
Instance Method Summary collapse
-
#initialize(taxable: nil, tax_rate_id: nil, retrieved_on: nil, tax_type: nil, rate_goods: nil, rate_services: nil, rate_shipping: nil, source: nil, freight_tax_collectable: nil, line_items: [], message: nil, country_iso: nil) ⇒ Result
constructor
A new instance of Result.
- #taxable? ⇒ Boolean
Constructor Details
#initialize(taxable: nil, tax_rate_id: nil, retrieved_on: nil, tax_type: nil, rate_goods: nil, rate_services: nil, rate_shipping: nil, source: nil, freight_tax_collectable: nil, line_items: [], message: nil, country_iso: nil) ⇒ Result
Returns a new instance of Result.
7 |
# File 'app/services/taxes/get_tax_rate.rb', line 7 def initialize(taxable: nil, tax_rate_id: nil, retrieved_on: nil, tax_type: nil, rate_goods: nil, rate_services: nil, rate_shipping: nil, source: nil, freight_tax_collectable: nil, line_items: [], message: nil, country_iso: nil) = super |
Instance Attribute Details
#country_iso ⇒ Object (readonly)
Returns the value of attribute country_iso
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def country_iso @country_iso end |
#freight_tax_collectable ⇒ Object (readonly)
Returns the value of attribute freight_tax_collectable
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def freight_tax_collectable @freight_tax_collectable end |
#line_items ⇒ Object (readonly)
Returns the value of attribute line_items
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def line_items @line_items end |
#message ⇒ Object (readonly)
Returns the value of attribute message
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def @message end |
#rate_goods ⇒ Object (readonly)
Returns the value of attribute rate_goods
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def rate_goods @rate_goods end |
#rate_services ⇒ Object (readonly)
Returns the value of attribute rate_services
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def rate_services @rate_services end |
#rate_shipping ⇒ Object (readonly)
Returns the value of attribute rate_shipping
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def rate_shipping @rate_shipping end |
#retrieved_on ⇒ Object (readonly)
Returns the value of attribute retrieved_on
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def retrieved_on @retrieved_on end |
#source ⇒ Object (readonly)
Returns the value of attribute source
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def source @source end |
#tax_rate_id ⇒ Object (readonly)
Returns the value of attribute tax_rate_id
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def tax_rate_id @tax_rate_id end |
#tax_type ⇒ Object (readonly)
Returns the value of attribute tax_type
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def tax_type @tax_type end |
#taxable ⇒ Object (readonly)
Returns the value of attribute taxable
6 7 8 |
# File 'app/services/taxes/get_tax_rate.rb', line 6 def taxable @taxable end |
Instance Method Details
#taxable? ⇒ Boolean
8 |
# File 'app/services/taxes/get_tax_rate.rb', line 8 def taxable? = taxable |