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
Public Class Methods
Source
# File lib/gocardless_pro/resources/tax_rate.rb, line 22 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
Initialize a tax_rate resource instance @param object [Hash] an object returned from the API
Public Instance Methods
Source
# File lib/gocardless_pro/resources/tax_rate.rb, line 34 def api_response ApiResponse.new(@response) end
Source
# File lib/gocardless_pro/resources/tax_rate.rb, line 39 def to_h @object end
Provides the tax_rate resource as a hash of all its readable attributes