Class: Dispatch::ExternalIDs::DispatchMe
- Inherits:
-
Object
- Object
- Dispatch::ExternalIDs::DispatchMe
- Includes:
- HTTParty
- Defined in:
- lib/dispatch/external_ids.rb
Class Method Summary collapse
Class Method Details
.fetch(client:, entity:, id:, access_token: nil) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dispatch/external_ids.rb', line 11 def self.fetch(client:, entity:, id:, access_token: nil) query = { filter: { client: client, type: entity, id: id, }, access_token: access_token } res = get('/v1/records.json', { query: query }) res['records'] if res.code == 200 end |