Class: BankExchangeApi::Request::Banks

Inherits:
Base
  • Object
show all
Defined in:
lib/bank_exchange_api/request/banks.rb

Instance Attribute Summary

Attributes inherited from Base

#cli

Instance Method Summary collapse

Methods inherited from Base

#get, #initialize, #query

Methods included from Param

#param

Constructor Details

This class inherits a constructor from BankExchangeApi::Request::Base

Instance Method Details

#endpointObject



16
17
18
# File 'lib/bank_exchange_api/request/banks.rb', line 16

def endpoint
  '/banks'
end

#jsonObject



5
6
7
# File 'lib/bank_exchange_api/request/banks.rb', line 5

def json
  super(root: :banks)
end

#paramsObject



9
10
11
12
13
14
# File 'lib/bank_exchange_api/request/banks.rb', line 9

def params
  {
      countries: countries.join(','),
      currencies: currencies.join(',')
  }
end