Sha256: 2c41aefdf1df29f825ad57e1139fb8df2f2e9c5046e65f7f797030faa1c2f963

Contents?: true

Size: 226 Bytes

Versions: 6

Compression:

Stored size: 226 Bytes

Contents

# frozen_string_literal: true

module BrasilAPI
  class Bank < Base
    class << self
      def all
        get("/banks/v1")
      end

      def find_by_code(code)
        get("/banks/v1/#{code}")
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
brasilapi-0.6.0 lib/brasil_api/bank.rb
brasilapi-0.5.1 lib/brasil_api/bank.rb
brasilapi-0.4.0 lib/brasil_api/bank.rb
brasilapi-0.3.0 lib/brasil_api/bank.rb
brasilapi-0.2.0 lib/brasil_api/bank.rb
brasilapi-0.1.1 lib/brasil_api/bank.rb