Sha256: 5c6354e14bba7ac45485e49adcbe2f6363e42eed9f48d42c2bd0ebe15893ff9c

Contents?: true

Size: 334 Bytes

Versions: 3

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

require 'fractal_api/base_model'
require 'fractal_api/paginator'

module FractalApi
  class Bank < BaseModel
    attributes :id, :name, :logo, :logo_url

    def self.all(filters = {})
      Paginator.new('/banking/v2/banks', self) do |url|
        get(url, params: filters)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fractal_api-0.1.2 lib/fractal_api/bank.rb
fractal_api-0.1.1 lib/fractal_api/bank.rb
fractal_api-0.1.0 lib/fractal_api/bank.rb