class GoCardlessPro::Resources::TaxRate
Tax rates from tax authority.
We also maintain a [static list of the tax rates for each jurisdiction](appendix-tax-rates).
Attributes
end_date[R]
id[R]
jurisdiction[R]
percentage[R]
start_date[R]
type[R]
Public Class Methods
new(object, response = nil)
click to toggle source
Initialize a tax_rate resource instance @param object [Hash] an object returned from the API
# File lib/gocardless_pro/resources/tax_rate.rb, line 29 def initialize(object, response = nil) @object = object @end_date = object['end_date'] @id = object['id'] @jurisdiction = object['jurisdiction'] @percentage = object['percentage'] @start_date = object['start_date'] @type = object['type'] @response = response end
Public Instance Methods
api_response()
click to toggle source
# File lib/gocardless_pro/resources/tax_rate.rb, line 41 def api_response ApiResponse.new(@response) end
to_h()
click to toggle source
Provides the tax_rate resource as a hash of all its readable attributes
# File lib/gocardless_pro/resources/tax_rate.rb, line 46 def to_h @object end