Class: Roar::Rails::Responder::Response
- Inherits:
-
Object
- Object
- Roar::Rails::Responder::Response
- Defined in:
- lib/roar/rails/responder.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
DISCUSS: how to add more header fields? #headers?.
-
#content_type ⇒ Object
readonly
DISCUSS: how to add more header fields? #headers?.
Instance Method Summary collapse
-
#initialize(body, content_type) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(body, content_type) ⇒ Response
Returns a new instance of Response.
65 66 67 68 |
# File 'lib/roar/rails/responder.rb', line 65 def initialize(body, content_type) @body = body @content_type = content_type end |
Instance Attribute Details
#body ⇒ Object (readonly)
DISCUSS: how to add more header fields? #headers?
63 64 65 |
# File 'lib/roar/rails/responder.rb', line 63 def body @body end |
#content_type ⇒ Object (readonly)
DISCUSS: how to add more header fields? #headers?
63 64 65 |
# File 'lib/roar/rails/responder.rb', line 63 def content_type @content_type end |