Sha256: 41faa8d7c6c8307a59ca5b8d2d745d6718f28876ab56078637f78314737553f5

Contents?: true

Size: 249 Bytes

Versions: 7

Compression:

Stored size: 249 Bytes

Contents

require "duty_calculator/client"

module DutyCalculator
  class Currency
    def self.list_all
      conn = DutyCalculator::Client.new
      resp = conn.get "#{DutyCalculator::Client.api_base}/supported-currencies"
      resp.body
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
duty_calculator-0.0.8 lib/duty_calculator/currency.rb
duty_calculator-0.0.7 lib/duty_calculator/currency.rb
duty_calculator-0.0.6 lib/duty_calculator/currency.rb
duty_calculator-0.0.5 lib/duty_calculator/currency.rb
duty_calculator-0.0.4 lib/duty_calculator/currency.rb
duty_calculator-0.0.3 lib/duty_calculator/currency.rb
duty_calculator-0.0.2 lib/duty_calculator/currency.rb