Class: HttpStub::Server::Stub::Empty

Inherits:
Object
  • Object
show all
Defined in:
lib/http_stub/server/stub/empty.rb

Constant Summary collapse

INSTANCE =
self.new.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#match_rulesObject (readonly)

Returns the value of attribute match_rules.



18
19
20
# File 'lib/http_stub/server/stub/empty.rb', line 18

def match_rules
  @match_rules
end

#responseObject (readonly)

Returns the value of attribute response.



18
19
20
# File 'lib/http_stub/server/stub/empty.rb', line 18

def response
  @response
end

#triggersObject (readonly)

Returns the value of attribute triggers.



18
19
20
# File 'lib/http_stub/server/stub/empty.rb', line 18

def triggers
  @triggers
end

#uriObject (readonly)

Returns the value of attribute uri.



18
19
20
# File 'lib/http_stub/server/stub/empty.rb', line 18

def uri
  @uri
end

Instance Method Details

#matches?(_criteria, _logger) ⇒ Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/http_stub/server/stub/empty.rb', line 20

def matches?(_criteria, _logger)
  false
end

#response_for(_request) ⇒ Object



24
25
26
# File 'lib/http_stub/server/stub/empty.rb', line 24

def response_for(_request)
  self
end

#to_hashObject



28
29
30
# File 'lib/http_stub/server/stub/empty.rb', line 28

def to_hash
  {}
end

#to_sObject



32
33
34
# File 'lib/http_stub/server/stub/empty.rb', line 32

def to_s
  ""
end