Sha256: aa7f2d885f244c7bde662584550a618d6059b9aeb7f1997362133cc312b23fd2

Contents?: true

Size: 864 Bytes

Versions: 21

Compression:

Stored size: 864 Bytes

Contents

module Myfinance
  module Resources
    #
    # A wrapper to Myfinance taxes API
    #
    # [API]
    #   Documentation: https://app.myfinance.com.br/docs/api/taxes
    #
    class Tax < Base
      #
      # List all taxes
      #
      # [API]
      #   Method: <tt>GET /taxes</tt>
      #
      #   Documentation: https://app.myfinance.com.br/docs/api/taxes#get_index
      #
      def find_all
        http.get("/taxes", body: {}) do |response|
          respond_with_collection(response)
        end
      end

      #
      # Show a tax
      #
      # [API]
      #   Method: <tt>GET /taxes/:id</tt>
      #
      #   Documentation: https://app.myfinance.com.br/docs/api/taxes#get_show
      #
      def find(id)
        http.get("/taxes/#{id}", body: {}) do |response|
          respond_with_object(response, "tax")
        end
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
myfinance-1.8.2 lib/myfinance/resources/tax.rb
myfinance-1.8.1 lib/myfinance/resources/tax.rb
myfinance-1.8.0 lib/myfinance/resources/tax.rb
myfinance-1.7.0 lib/myfinance/resources/tax.rb
myfinance-1.6.6 lib/myfinance/resources/tax.rb
myfinance-1.6.5 lib/myfinance/resources/tax.rb
myfinance-1.6.4 lib/myfinance/resources/tax.rb
myfinance-1.6.3 lib/myfinance/resources/tax.rb
myfinance-1.6.1 lib/myfinance/resources/tax.rb
myfinance-1.6.0 lib/myfinance/resources/tax.rb
myfinance-1.5.0 lib/myfinance/resources/tax.rb
myfinance-1.4.1 lib/myfinance/resources/tax.rb
myfinance-1.4.0 lib/myfinance/resources/tax.rb
myfinance-1.3.1 lib/myfinance/resources/tax.rb
myfinance-1.3.0 lib/myfinance/resources/tax.rb
myfinance-1.2.1 lib/myfinance/resources/tax.rb
myfinance-1.2.0 lib/myfinance/resources/tax.rb
myfinance-1.1.0 lib/myfinance/resources/tax.rb
myfinance-1.0.0 lib/myfinance/resources/tax.rb
myfinance-0.7.0 lib/myfinance/resources/tax.rb