Class: Amber::View
- Inherits:
-
Object
- Object
- Amber::View
- Defined in:
- lib/amber/view.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Json
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#content ⇒ Object
Returns the value of attribute content.
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
-
#initialize(code = 404, header = {}, content = nil) ⇒ View
constructor
A new instance of View.
Constructor Details
#initialize(code = 404, header = {}, content = nil) ⇒ View
Returns a new instance of View.
4 5 6 7 8 |
# File 'lib/amber/view.rb', line 4 def initialize(code = 404, header = {}, content = nil) @code = code @header = header @content = content end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/amber/view.rb', line 2 def code @code end |
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/amber/view.rb', line 2 def content @content end |
#header ⇒ Object
Returns the value of attribute header.
2 3 4 |
# File 'lib/amber/view.rb', line 2 def header @header end |