Class: Amber::Switch::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/amber/switch/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

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

#contentObject

Returns the value of attribute content.



2
3
4
# File 'lib/amber/switch/response.rb', line 2

def content
  @content
end

#headerObject

Returns the value of attribute header.



2
3
4
# File 'lib/amber/switch/response.rb', line 2

def header
  @header
end

#statusObject

Returns the value of attribute status.



2
3
4
# File 'lib/amber/switch/response.rb', line 2

def status
  @status
end