class CrossSpec::TaskMessage
Attributes
task[R]
Public Class Methods
from_json(json)
click to toggle source
# File lib/cross_spec/task_message.rb, line 10 def self.from_json(json) new( task: json["task"], data: json["data"], biomarkers: json["biomarkers"] ) end
new(task:, data: nil, biomarkers: nil)
click to toggle source
Calls superclass method
CrossSpec::Message::new
# File lib/cross_spec/task_message.rb, line 3 def initialize(task:, data: nil, biomarkers: nil) super(data: data, biomarkers: biomarkers) @task = task end