Class: VNCPostAPI::Tracking

Inherits:
Base
  • Object
show all
Defined in:
lib/vncpost_api/resources/tracking.rb

Overview

Tracking is only available on production

Class Method Summary collapse

Methods inherited from Base

#build, #create, #update

Class Method Details

.find(code) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/vncpost_api/resources/tracking.rb', line 8

def self.find(code)
  body = {
    Code: code
  }
  connection.bearer_token = UserLogin.get_bearer_token(username: "V9Cus327141793", password: "8DBNvF9Y56nnjNTU")
  response = connection.post(collection_path, body.to_json)
  new(self.format.decode(response.body).deep_transform_keys!(&:underscore))
end