Class: Arcp::Job::Unsubscribe

Inherits:
Data
  • Object
show all
Defined in:
lib/arcp/job/unsubscribe.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#job_idObject (readonly)

Returns the value of attribute job_id

Returns:

  • (Object)

    the current value of 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_hObject



7
# File 'lib/arcp/job/unsubscribe.rb', line 7

def to_h = { 'job_id' => job_id }