diff options
author | Jared Norman <jared@super.gd> | 2020-07-08 18:35:03 -0700 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2020-07-14 13:07:55 -0700 |
commit | bec2e97f97c5abafaa7704d562cde2e21ddb6fb3 (patch) | |
tree | 2168adadb97a5d02d2bc9626f59cb31bf5fafe66 /lib/super_good/solidus_taxjar.rb | |
parent | 68b29ea1afbb9339865493016fe196464b7ee1f4 (diff) |
Refactor API class instantiation
This is used by any class that interacts with the TaxJar API and is
meant to be able to be consumed by applications for custom needs, so
let's just make it exposed at the top level.
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r-- | lib/super_good/solidus_taxjar.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb index bdd2dcd..f45db80 100644 --- a/lib/super_good/solidus_taxjar.rb +++ b/lib/super_good/solidus_taxjar.rb @@ -25,6 +25,10 @@ module SuperGood attr_accessor :taxable_address_check attr_accessor :taxable_order_check attr_accessor :test_mode + + def api + ::SuperGood::SolidusTaxJar::API.new + end end self.cache_duration = 3.hours |