Class: Amber::Switch::Response
- Inherits:
-
Object
- Object
- Amber::Switch::Response
- Defined in:
- lib/amber/switch/response.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#header ⇒ Object
Returns the value of attribute header.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
4 5 6 7 |
# File 'lib/amber/switch/response.rb', line 4 def initialize @status = false @header = {} end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/amber/switch/response.rb', line 2 def content @content end |
#header ⇒ Object
Returns the value of attribute header.
2 3 4 |
# File 'lib/amber/switch/response.rb', line 2 def header @header end |
#status ⇒ Object
Returns the value of attribute status.
2 3 4 |
# File 'lib/amber/switch/response.rb', line 2 def status @status end |