Class: Peeek::Call::Result
- Inherits:
-
Object
- Object
- Peeek::Call::Result
- Defined in:
- lib/peeek/call.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Value of the result.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(value) ⇒ Result
constructor
Initialize the result.
Constructor Details
#initialize(value) ⇒ Result
Initialize the result.
111 112 113 |
# File 'lib/peeek/call.rb', line 111 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns value of the result.
117 118 119 |
# File 'lib/peeek/call.rb', line 117 def value @value end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
119 120 121 |
# File 'lib/peeek/call.rb', line 119 def ==(other) self.class == other.class && @value == other.value end |
#hash ⇒ Object
124 125 126 |
# File 'lib/peeek/call.rb', line 124 def hash (self.class.hash << 32) + @value.hash end |