diff options
| author | mo <mo.khan@gmail.com> | 2018-03-18 17:29:36 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2018-03-18 17:29:36 -0600 |
| commit | 29d76cc177fb90e2319ddb874162c9f9c9ddb3ba (patch) | |
| tree | 483c6377f6aa7cdae5c06b0a1def69a941f313d1 | |
| parent | cfc92965c19d31630ff41f75f43d835e1ac71880 (diff) | |
add device trajectory.
| -rw-r--r-- | lib/ats/amp4e/computers.rb | 4 | ||||
| -rw-r--r-- | lib/ats/cli/amp4e/computers.rb | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/lib/ats/amp4e/computers.rb b/lib/ats/amp4e/computers.rb index 595b04c..e325c12 100644 --- a/lib/ats/amp4e/computers.rb +++ b/lib/ats/amp4e/computers.rb @@ -14,6 +14,10 @@ module ATS def show(id) api.get("computers/#{id}") end + + def trajectory(id) + api.get("computers/#{id}/trajectory") + end end end end diff --git a/lib/ats/cli/amp4e/computers.rb b/lib/ats/cli/amp4e/computers.rb index 0e854e0..1038128 100644 --- a/lib/ats/cli/amp4e/computers.rb +++ b/lib/ats/cli/amp4e/computers.rb @@ -13,6 +13,11 @@ module ATS def show(id) print_json api.computers.show(id) end + + desc 'trajectory <UUID>', 'list' + def trajectory(id) + print_json api.computers.trajectory(id) + end end end end |
