Class: Rebels::Values::Request

Inherits:
Object
  • Object
show all
Includes:
With
Defined in:
lib/rebels/values/request.rb

Instance Method Summary collapse

Methods included from With

#attributes, #with

Instance Method Details

#all_paramsObject



16
17
18
# File 'lib/rebels/values/request.rb', line 16

def all_params
  path_params.merge(params)
end

#methodObject



20
21
22
# File 'lib/rebels/values/request.rb', line 20

def method
  @method || "GET"
end

#paramsObject



12
13
14
# File 'lib/rebels/values/request.rb', line 12

def params
  HashWithIndifferentAccess.new(@params)
end

#path_paramsObject



8
9
10
# File 'lib/rebels/values/request.rb', line 8

def path_params
  @path_params || {}
end