Method: UI2API::Base#initialize
- Defined in:
- lib/ui2api.rb
#initialize(args) ⇒ Base
Returns a new instance of Base.
86 87 88 89 90 91 92 93 94 |
# File 'lib/ui2api.rb', line 86 def initialize(args) response, _request, _result = *args @response = response @code = response.code @header = response.instance_variable_get('@headers') @data = JSON.parse(response.body, symbolize_names: true) rescue nil set_watir_model_attr end |