Module: Ey::Core::Request
- Defined in:
- lib/ey-core/request.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
2
3
4
5
6
7
8
|
# File 'lib/ey-core/request.rb', line 2
def method_missing(method, *args, &block)
if service.respond_to?(method)
service.send(method, *args, &block)
else
super
end
end
|
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
10
11
12
|
# File 'lib/ey-core/request.rb', line 10
def params
@params
end
|
Instance Method Details
#_mock(params) ⇒ Object
17
18
19
20
|
# File 'lib/ey-core/request.rb', line 17
def _mock(params)
@params = params.dup
mock
end
|
#_real(params) ⇒ Object
12
13
14
15
|
# File 'lib/ey-core/request.rb', line 12
def _real(params)
@params = params.dup
real
end
|