Response
Wraps action response definitions.
Example: Response with body
ruby
response = action.response
response.body? # => true
response.no_content? # => false
response.body # => Param for response bodyExample: No content response
ruby
response.no_content? # => true
response.body? # => falseInstance Methods
#body
#body
The body for this response.
Returns
Param, nil
#body?
#body?
Whether this response has a body.
Returns
Boolean
#no_content?
#no_content?
Whether this response has no content.
Returns
Boolean
#to_h
#to_h
Converts this response to a hash.
Returns
Hash