Class: Api::Taxjar::SummaryRate
- Inherits:
-
Data
- Object
- Data
- Api::Taxjar::SummaryRate
- Defined in:
- app/services/api/taxjar/summary_rate.rb
Overview
A summary tax rate returned by GET /v2/summary_rates. Consumed by
TaxRate.taxjar_summary_rates (which filters by country_code).
Instance Attribute Summary collapse
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#country_code ⇒ Object
readonly
Returns the value of attribute country_code.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#region_code ⇒ Object
readonly
Returns the value of attribute region_code.
Instance Method Summary collapse
-
#initialize(country_code: nil, country: nil, region_code: nil, region: nil) ⇒ SummaryRate
constructor
A new instance of SummaryRate.
Constructor Details
#initialize(country_code: nil, country: nil, region_code: nil, region: nil) ⇒ SummaryRate
Returns a new instance of SummaryRate.
8 |
# File 'app/services/api/taxjar/summary_rate.rb', line 8 def initialize(country_code: nil, country: nil, region_code: nil, region: nil) = super |
Instance Attribute Details
#country ⇒ Object (readonly)
Returns the value of attribute country
7 8 9 |
# File 'app/services/api/taxjar/summary_rate.rb', line 7 def country @country end |
#country_code ⇒ Object (readonly)
Returns the value of attribute country_code
7 8 9 |
# File 'app/services/api/taxjar/summary_rate.rb', line 7 def country_code @country_code end |
#region ⇒ Object (readonly)
Returns the value of attribute region
7 8 9 |
# File 'app/services/api/taxjar/summary_rate.rb', line 7 def region @region end |
#region_code ⇒ Object (readonly)
Returns the value of attribute region_code
7 8 9 |
# File 'app/services/api/taxjar/summary_rate.rb', line 7 def region_code @region_code end |