Class: Dispatch::ExternalIDs::ThirdParty
- Inherits:
-
Object
- Object
- Dispatch::ExternalIDs::ThirdParty
- Includes:
- HTTParty
- Defined in:
- lib/dispatch/external_ids.rb
Class Method Summary collapse
Class Method Details
.fetch(client:, entity:, id:, access_token: nil) ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/dispatch/external_ids.rb', line 30 def self.fetch(client:, entity:, id:, access_token: nil) query = { filter: { client: client, dispatch_type: entity, dispatch_id: id, }, access_token: access_token } res = get('/v1/records.json', { query: query }) res['records'] if res.code == 200 end |