Class: BankExchangeApi::Request::Banks
- Inherits:
-
Base
- Object
- Base
- BankExchangeApi::Request::Banks
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
Instance Method Details
#endpoint ⇒ Object
16
17
18
|
# File 'lib/bank_exchange_api/request/banks.rb', line 16
def endpoint
'/banks'
end
|
#json ⇒ Object
5
6
7
|
# File 'lib/bank_exchange_api/request/banks.rb', line 5
def json
super(root: :banks)
end
|
#params ⇒ Object
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
|