Class: Api::Taxjar
- Inherits:
-
Object
- Object
- Api::Taxjar
- Includes:
- Singleton
- Defined in:
- app/services/api/taxjar.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Taxjar
constructor
A new instance of Taxjar.
Constructor Details
#initialize ⇒ Taxjar
Returns a new instance of Taxjar.
7 8 9 10 11 12 13 14 |
# File 'app/services/api/taxjar.rb', line 7 def initialize require 'taxjar' = { api_key: Heatwave::Configuration.fetch(:taxjar,:api_key), api_url: Heatwave::Configuration.fetch(:taxjar,:api_url) } @client = Taxjar::Client.new(**) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'app/services/api/taxjar.rb', line 5 def client @client end |
Class Method Details
.client ⇒ Object
16 17 18 |
# File 'app/services/api/taxjar.rb', line 16 def self.client instance.client end |