Module: YellowApi::Client::FindDealer
- Included in:
- YellowApi::Client
- Defined in:
- lib/yellow_api/client/find_dealer.rb
Instance Method Summary collapse
-
#find_dealer(parent_id, options = {}) ⇒ Hash
Returns a list of all dealers/franchises/branches for that business.
Instance Method Details
#find_dealer(parent_id, options = {}) ⇒ Hash
Note:
A business with several locations may have a “parent” listing (primary) and one or more “children” listings.
Returns a list of all dealers/franchises/branches for that business.
20 21 22 23 24 |
# File 'lib/yellow_api/client/find_dealer.rb', line 20 def find_dealer(parent_id, = {}) [:pid] = parent_id get('/FindDealer/', ) end |