Class: Quovo::Api::Brokerages
- Inherits:
-
Base
- Object
- Base
- Quovo::Api::Brokerages
show all
- Defined in:
- lib/quovo/api/brokerages.rb
Instance Attribute Summary
Attributes inherited from Base
#token
Instance Method Summary
collapse
Methods inherited from Base
#api, #initialize
Methods included from Request
#request
Instance Method Details
#all ⇒ Object
7
8
9
10
11
|
# File 'lib/quovo/api/brokerages.rb', line 7
def all
api(:get, '/brokerages')
.fetch('brokerages')
.cast(Brokerage)
end
|
#find(id) ⇒ Object
13
14
15
16
17
18
|
# File 'lib/quovo/api/brokerages.rb', line 13
def find(id)
id.require!(as: :id)
api(:get, "/brokerages/#{id}")
.fetch('brokerage')
.cast(Brokerage)
end
|