Class: HttpStub::Server::Stub::Response::Body
- Inherits:
-
Object
- Object
- HttpStub::Server::Stub::Response::Body
- Defined in:
- lib/http_stub/server/stub/response/body.rb
Class Method Summary collapse
Class Method Details
permalink .create(args) ⇒ Object
[View source]
8 9 10 11 12 13 14 |
# File 'lib/http_stub/server/stub/response/body.rb', line 8 def self.create(args) if args[:body].is_a?(Hash) HttpStub::Server::Stub::Response::FileBody.new(args[:body]) else HttpStub::Server::Stub::Response::TextBody.new(args) end end |