Class: PatternMatchingExample::Success
- Inherits:
-
Object
- Object
- PatternMatchingExample::Success
- Defined in:
- lib/contracts-ruby2/spec/fixtures/fixtures.rb,
lib/contracts-ruby3/spec/fixtures/fixtures.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(request) ⇒ Success
constructor
A new instance of Success.
Constructor Details
#initialize(request) ⇒ Success
Returns a new instance of Success.
467 468 469 |
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 467 def initialize request @request = request end |
Instance Attribute Details
#request ⇒ Object
Returns the value of attribute request.
466 467 468 |
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 466 def request @request end |
Instance Method Details
#==(other) ⇒ Object
471 472 473 |
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 471 def ==(other) request == other.request end |