Module: HttpStub::Server::Stub::Response
- Defined in:
- lib/http_stub/server/stub/response.rb,
lib/http_stub/server/stub/response/base.rb,
lib/http_stub/server/stub/response/file.rb,
lib/http_stub/server/stub/response/text.rb,
lib/http_stub/server/stub/response/attribute/body.rb,
lib/http_stub/server/stub/response/attribute/headers.rb,
lib/http_stub/server/stub/response/attribute/interpolator.rb,
lib/http_stub/server/stub/response/attribute/interpolator/headers.rb,
lib/http_stub/server/stub/response/attribute/interpolator/parameters.rb
Defined Under Namespace
Modules: Attribute Classes: Base, File, Text
Class Method Summary collapse
Class Method Details
.create(args) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/http_stub/server/stub/response.rb', line 7 def self.create(args) if args["body"].is_a?(Hash) HttpStub::Server::Stub::Response::File.new(args) else HttpStub::Server::Stub::Response::Text.new(args) end end |