Class: AWS::Flow::DecisionID
- Inherits:
-
Object
- Object
- AWS::Flow::DecisionID
- Defined in:
- lib/aws/decider/async_decider.rb
Overview
Represents a decision ID.
Instance Method Summary collapse
-
#eql?(other) ⇒ true, false
Is this decision ID the same as another?.
-
#hash ⇒ Object
Hash function to return an unique value for the decision ID.
-
#initialize(decision_target, string_id) ⇒ DecisionID
constructor
Creates a new decision ID.
Constructor Details
#initialize(decision_target, string_id) ⇒ DecisionID
Creates a new decision ID.
30 31 32 33 |
# File 'lib/aws/decider/async_decider.rb', line 30 def initialize(decision_target, string_id) @decision_target = decision_target @string_id = string_id end |
Instance Method Details
#eql?(other) ⇒ true, false
Is this decision ID the same as another?
56 57 58 |
# File 'lib/aws/decider/async_decider.rb', line 56 def eql?(other) end |
#hash ⇒ Object
Hash function to return an unique value for the decision ID.
40 41 42 43 44 45 46 |
# File 'lib/aws/decider/async_decider.rb', line 40 def hash prime = 31 result = 1 result = result * prime + (@decision_target == nil ? 0 : @decision_target.hash) result = prime * result + (@string_id == nil ? 0 : @string_id.hash) result end |