Class: PatternMatchingExample::Success

Inherits:
Object
  • Object
show all
Defined in:
lib/contracts-ruby2/spec/fixtures/fixtures.rb,
lib/contracts-ruby3/spec/fixtures/fixtures.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject

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