Class: Moon::Response::Base

Inherits:
Object
  • Object
show all
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

Direct Known Subclasses

JSON, XML

Instance Method Summary collapse

Instance Method Details

#bodyObject



14
15
16
# File 'lib/moon/response/base.rb', line 14

def body
  nil
end

#headersObject



10
11
12
# File 'lib/moon/response/base.rb', line 10

def headers
  { }
end

#statusObject



6
7
8
# File 'lib/moon/response/base.rb', line 6

def status
  200
end