Module: HttpStub::Server::Stub

Defined in:
lib/http_stub/server/stub.rb,
lib/http_stub/server/stub/stub.rb,
lib/http_stub/server/stub/empty.rb,
lib/http_stub/server/stub/registry.rb,
lib/http_stub/server/stub/response.rb,
lib/http_stub/server/stub/triggers.rb,
lib/http_stub/server/stub/controller.rb,
lib/http_stub/server/stub/match/miss.rb,
lib/http_stub/server/stub/match/match.rb,
lib/http_stub/server/stub/match/rules.rb,
lib/http_stub/server/stub/response/body.rb,
lib/http_stub/server/stub/match/rule/uri.rb,
lib/http_stub/server/stub/match/rule/body.rb,
lib/http_stub/server/stub/response/blocks.rb,
lib/http_stub/server/stub/match/controller.rb,
lib/http_stub/server/stub/response/headers.rb,
lib/http_stub/server/stub/match/rule/method.rb,
lib/http_stub/server/stub/match/rule/truthy.rb,
lib/http_stub/server/stub/response/response.rb,
lib/http_stub/server/stub/match/hash_matcher.rb,
lib/http_stub/server/stub/match/rule/headers.rb,
lib/http_stub/server/stub/response/file_body.rb,
lib/http_stub/server/stub/response/text_body.rb,
lib/http_stub/server/stub/match/rule/parameters.rb,
lib/http_stub/server/stub/match/rule/schema_body.rb,
lib/http_stub/server/stub/match/rule/simple_body.rb,
lib/http_stub/server/stub/match/exact_value_matcher.rb,
lib/http_stub/server/stub/match/regexp_value_matcher.rb,
lib/http_stub/server/stub/match/string_value_matcher.rb,
lib/http_stub/server/stub/match/omitted_value_matcher.rb,
lib/http_stub/server/stub/match/rule/json_schema_body.rb

Defined Under Namespace

Modules: Match, Response Classes: Controller, Empty, Registry, Stub, Triggers

Class Method Summary collapse

Class Method Details

.create(hash) ⇒ Object



6
7
8
# File 'lib/http_stub/server/stub.rb', line 6

def self.create(hash)
  HttpStub::Server::Stub::Stub.new(hash)
end