Class: M2X::Client::Job
Overview
Wrapper for AT&T M2X Job API m2x.att.com/developer/documentation/v2/jobs
Constant Summary collapse
- PATH =
"/jobs"
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
- #delete! ⇒ Object
- #path ⇒ Object
-
#update!(_) ⇒ Object
Updating and deleting jobs is not supported by the M2X API.
Methods inherited from Resource
#initialize, #inspect, #refresh, #view
Constructor Details
This class inherits a constructor from M2X::Client::Resource
Instance Method Details
#delete! ⇒ Object
18 19 20 |
# File 'lib/m2x/job.rb', line 18 def delete! fail NotImplementedError end |
#path ⇒ Object
9 10 11 |
# File 'lib/m2x/job.rb', line 9 def path @path ||= "#{PATH}/#{ URI.encode(@attributes.fetch("id")) }" end |
#update!(_) ⇒ Object
Updating and deleting jobs is not supported by the M2X API
14 15 16 |
# File 'lib/m2x/job.rb', line 14 def update!(_) fail NotImplementedError end |