Class: CrossSpec::Message
- Inherits:
-
Object
- Object
- CrossSpec::Message
- Defined in:
- lib/cross_spec/message.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#biomarkers ⇒ Object
readonly
Returns the value of attribute biomarkers.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data: nil, biomarkers: nil) ⇒ Message
constructor
A new instance of Message.
- #origin_biomarker ⇒ Object
Constructor Details
#initialize(data: nil, biomarkers: nil) ⇒ Message
Returns a new instance of Message.
3 4 5 6 |
# File 'lib/cross_spec/message.rb', line 3 def initialize(data: nil, biomarkers: nil) @data = data @biomarkers = Array(biomarkers) end |
Instance Attribute Details
#biomarkers ⇒ Object (readonly)
Returns the value of attribute biomarkers.
8 9 10 |
# File 'lib/cross_spec/message.rb', line 8 def biomarkers @biomarkers end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/cross_spec/message.rb', line 8 def data @data end |
Instance Method Details
#origin_biomarker ⇒ Object
10 11 12 |
# File 'lib/cross_spec/message.rb', line 10 def origin_biomarker @biomarkers.last end |