Class: Reactive::Request

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Request

Returns a new instance of Request.



7
8
9
# File 'lib/reactive-core/request.rb', line 7

def initialize(params = {})
  parse_params(params.dup)
end

Instance Attribute Details

#formatObject (readonly)

Returns the value of attribute format.



4
5
6
# File 'lib/reactive-core/request.rb', line 4

def format
  @format
end

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

#treatmentObject

Returns the value of attribute treatment.



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

def treatment
  @treatment
end

Instance Method Details

#default_formatObject



11
12
13
# File 'lib/reactive-core/request.rb', line 11

def default_format
  nil
end

#default_treatmentObject



15
16
17
# File 'lib/reactive-core/request.rb', line 15

def default_treatment
  nil
end