class Amber::View::Json
Public Class Methods
new(code = 404, header = {}, data = nil)
click to toggle source
Calls superclass method
Amber::View::new
# File lib/amber/view/json.rb, line 2 def initialize(code = 404, header = {}, data = nil) super code, header, Amber::Switch::Content::Json.new if data self.content.data = data end end