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



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