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.
122 123 124 |
# File 'lib/peeek/call.rb', line 122 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns value of the result.
128 129 130 |
# File 'lib/peeek/call.rb', line 128 def value @value end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
130 131 132 |
# File 'lib/peeek/call.rb', line 130 def ==(other) self.class == other.class && @value == other.value end |
#hash ⇒ Object
135 136 137 |
# File 'lib/peeek/call.rb', line 135 def hash (self.class.hash << 32) + @value.hash end |