Class: Arcp::Job::Unsubscribe
- Inherits:
-
Data
- Object
- Data
- Arcp::Job::Unsubscribe
- Defined in:
- lib/arcp/job/unsubscribe.rb
Instance Attribute Summary collapse
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id
5 6 7 |
# File 'lib/arcp/job/unsubscribe.rb', line 5 def job_id @job_id end |
Class Method Details
.from_h(h) ⇒ Object
6 |
# File 'lib/arcp/job/unsubscribe.rb', line 6 def self.from_h(h) = new(job_id: h.transform_keys(&:to_s).fetch('job_id')) |
Instance Method Details
#to_h ⇒ Object
7 |
# File 'lib/arcp/job/unsubscribe.rb', line 7 def to_h = { 'job_id' => job_id } |