Class: Determinator::Tracking::Determination
- Inherits:
-
Object
- Object
- Determinator::Tracking::Determination
- Defined in:
- lib/determinator/tracking/determination.rb
Instance Attribute Summary collapse
-
#determination ⇒ Object
readonly
Returns the value of attribute determination.
-
#feature_id ⇒ Object
readonly
Returns the value of attribute feature_id.
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(id:, guid:, feature_id:, determination:) ⇒ Determination
constructor
A new instance of Determination.
Constructor Details
#initialize(id:, guid:, feature_id:, determination:) ⇒ Determination
Returns a new instance of Determination.
6 7 8 9 10 11 |
# File 'lib/determinator/tracking/determination.rb', line 6 def initialize(id:, guid:, feature_id:, determination:) @id = id @guid = guid @feature_id = feature_id @determination = determination end |
Instance Attribute Details
#determination ⇒ Object (readonly)
Returns the value of attribute determination.
4 5 6 |
# File 'lib/determinator/tracking/determination.rb', line 4 def determination @determination end |
#feature_id ⇒ Object (readonly)
Returns the value of attribute feature_id.
4 5 6 |
# File 'lib/determinator/tracking/determination.rb', line 4 def feature_id @feature_id end |
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
4 5 6 |
# File 'lib/determinator/tracking/determination.rb', line 4 def guid @guid end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/determinator/tracking/determination.rb', line 4 def id @id end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
13 14 15 |
# File 'lib/determinator/tracking/determination.rb', line 13 def ==(other) id == other.id && guid == other.guid && feature_id == other.feature_id && determination == other.determination end |
#hash ⇒ Object
19 20 21 |
# File 'lib/determinator/tracking/determination.rb', line 19 def hash [id, guid, feature_id, determination].hash end |