Module: CloudConnect::Trackings

Included in:
Client
Defined in:
lib/cloud_connect/client/trackings.rb

Instance Method Summary collapse

Instance Method Details

#trackings(opts = {}) ⇒ Array of Hashie::Mash

Retrieve list of tracking data

Parameters:

  • opts (Hash) (defaults to: {})

    the options to filter the tracking data.

Returns:

  • (Array of Hashie::Mash)

    Tracking data

See Also:



17
18
19
20
# File 'lib/cloud_connect/client/trackings.rb', line 17

def trackings(opts = {})
  trackings = connection.get(connection.build_url("tracking_records", opts)).body
  trackings.map!{|hash| hash.values.first}
end