Class: RubstApi::HTMLResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/rubst_api/responses.rb

Instance Attribute Summary

Attributes inherited from Response

#body, #headers, #media_type, #status_code

Instance Method Summary collapse

Methods inherited from Response

#delete_cookie, #finish, #render, #set_cookie

Constructor Details

#initialize(content = nil, **options) ⇒ HTMLResponse

Returns a new instance of HTMLResponse.



36
# File 'lib/rubst_api/responses.rb', line 36

def initialize(content = nil, **options) = super(content, media_type: "text/html; charset=utf-8", **options)