Class: Moon::Response::Base
- Inherits:
-
Object
- Object
- Moon::Response::Base
- Defined in:
- lib/moon/response/base.rb
Overview
Moon::Response::Base is the base class for all responses. It simply provides default values for status, headers and body
Instance Method Summary collapse
Instance Method Details
#body ⇒ Object
14 15 16 |
# File 'lib/moon/response/base.rb', line 14 def body nil end |
#headers ⇒ Object
10 11 12 |
# File 'lib/moon/response/base.rb', line 10 def headers { } end |
#status ⇒ Object
6 7 8 |
# File 'lib/moon/response/base.rb', line 6 def status 200 end |