Class: Api::Taxjar::SummaryRate

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

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

#countryObject (readonly)

Returns the value of attribute country

Returns:

  • (Object)

    the current value of country



7
8
9
# File 'app/services/api/taxjar/summary_rate.rb', line 7

def country
  @country
end

#country_codeObject (readonly)

Returns the value of attribute country_code

Returns:

  • (Object)

    the current value of country_code



7
8
9
# File 'app/services/api/taxjar/summary_rate.rb', line 7

def country_code
  @country_code
end

#regionObject (readonly)

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



7
8
9
# File 'app/services/api/taxjar/summary_rate.rb', line 7

def region
  @region
end

#region_codeObject (readonly)

Returns the value of attribute region_code

Returns:

  • (Object)

    the current value of region_code



7
8
9
# File 'app/services/api/taxjar/summary_rate.rb', line 7

def region_code
  @region_code
end