Sha256: 805d31fbdab270fa9d9a755eae088eb33dc21910cb52b59e2c29ac48db38176c

Contents?: true

Size: 239 Bytes

Versions: 7

Compression:

Stored size: 239 Bytes

Contents

require "duty_calculator/client"

module DutyCalculator
  class Category
    def self.list_all
      conn = DutyCalculator::Client.new
      resp = conn.get "#{DutyCalculator::Client.api_base}/categories"
      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/category.rb
duty_calculator-0.0.7 lib/duty_calculator/category.rb
duty_calculator-0.0.6 lib/duty_calculator/category.rb
duty_calculator-0.0.5 lib/duty_calculator/category.rb
duty_calculator-0.0.4 lib/duty_calculator/category.rb
duty_calculator-0.0.3 lib/duty_calculator/category.rb
duty_calculator-0.0.2 lib/duty_calculator/category.rb