Class: ArrowFlight::ClientOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow-flight/client-options.rb

Class Method Summary collapse

Class Method Details

.try_convert(value) ⇒ Object



21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/arrow-flight/client-options.rb', line 21

def try_convert(value)
  case value
  when Hash
    options = new
    value.each do |name, value|
      options.__send__("#{name}=", value)
    end
    options
  else
    nil
  end
end