class AWS::Flow::DecisionID

Represents a decision ID.

Public Class Methods

new(decision_target, string_id) click to toggle source

Creates a new decision ID.

@param decision_target

The decision target.

@param string_id

The string that identifies this decision.
# File lib/aws/decider/async_decider.rb, line 30
def initialize(decision_target, string_id)
  @decision_target = decision_target
  @string_id = string_id
end

Public Instance Methods

eql?(other) click to toggle source

Is this decision ID the same as another?

@param [Object] other

The object to compare with.

@return [true, false]

Returns `true` if the object is the same as this decision ID; `false` otherwise.
# File lib/aws/decider/async_decider.rb, line 56
def eql?(other)

end
hash() click to toggle source

Hash function to return an unique value for the decision ID.

@return

The calculated hash value for the decision ID.
# 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