Sha256: 86d4326fadae96b07bdedd094646081190bc0e635e198397b888495884336c84

Contents?: true

Size: 664 Bytes

Versions: 30

Compression:

Stored size: 664 Bytes

Contents

module Plaid
  # Public: Class used to call the Categories product.
  class Categories < BaseProduct
    # Public: Get information about all Plaid categories
    #
    # Does a POST /categories/get call to retrieve a list of all categories.
    #
    # Returns the CategoriesResponse object with a list of categories.
    def get
      CategoriesResponse.new(client.post('categories/get', {}))
    end
  end

  # Public: Response wrapper for /categories/get.
  class CategoriesResponse < Models::BaseResponse
    ##
    # :attr_reader:
    # Public: Categories: Array of Plaid::Models::Category.
    property :categories, coerce: Array[Models::Category]
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
plaid-11.1.1 lib/plaid/products/categories.rb
plaid-13.2.0 lib/plaid/products/categories.rb
plaid-13.1.0 lib/plaid/products/categories.rb
plaid-13.0.1 lib/plaid/products/categories.rb
plaid-13.0.0 lib/plaid/products/categories.rb
plaid-12.0.0 lib/plaid/products/categories.rb
plaid-11.1.0 lib/plaid/products/categories.rb
plaid-11.0.0 lib/plaid/products/categories.rb
plaid-10.1.0 lib/plaid/products/categories.rb
plaid-10.0.0 lib/plaid/products/categories.rb
plaid-9.0.0 lib/plaid/products/categories.rb
plaid-8.9.0 lib/plaid/products/categories.rb
plaid-8.8.0 lib/plaid/products/categories.rb
plaid-8.7.0 lib/plaid/products/categories.rb
plaid-8.6.0 lib/plaid/products/categories.rb
plaid-8.5.0 lib/plaid/products/categories.rb
plaid-8.4.0 lib/plaid/products/categories.rb
plaid-8.3.0 lib/plaid/products/categories.rb
plaid-8.2.0 lib/plaid/products/categories.rb
plaid-8.1.0 lib/plaid/products/categories.rb