Class: Reactive::Response

Inherits:
Object show all
Defined in:
lib/reactive-core/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



5
6
7
# File 'lib/reactive-core/response.rb', line 5

def initialize
  @variables = {}
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def body
  @body
end

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def format
  @format
end

#handler_nameObject

Returns the value of attribute handler_name.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def handler_name
  @handler_name
end

#redirected_toObject

Returns the value of attribute redirected_to.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def redirected_to
  @redirected_to
end

#templateObject

Returns the value of attribute template.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def template
  @template
end

#treatmentObject

Returns the value of attribute treatment.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def treatment
  @treatment
end

#variablesObject

Returns the value of attribute variables.



3
4
5
# File 'lib/reactive-core/response.rb', line 3

def variables
  @variables
end

Instance Method Details

#clearObject



9
10
11
12
# File 'lib/reactive-core/response.rb', line 9

def clear
  @body = @redirected_to = @handler_name = @treatment = @format = nil
  @variables = {}
end