Method: Apia::RequestEnvironment#call
- Defined in:
- lib/apia/request_environment.rb
#call(*args, &block) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/apia/request_environment.rb', line 20 def call(*args, &block) return unless block_given? instance_exec(@request, @response, *args, &block) rescue ::StandardError => e raise_exception(e) end |