class Comet::HTTPConnectorOptions

def from_hash(obj)

Parameters:
  • obj (Hash) -- The complete object as a Ruby hash
def from_hash(obj)
  raise TypeError, "'obj' expected Hash, got #{obj.class}" unless obj.is_a? Hash
  obj.each do |k, v|
    case k
    when 'ListenAddress'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @listen_address___donotusedirectly = v
    when 'SSLCertPath'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @sslcert_path = v
    when 'SSLIntermediate'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @sslintermediate = v
    when 'SSLCertKey'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @sslcert_key = v
    when 'AutoSSLDomains'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @auto_ssldomains = v
    when 'SSLPfxPath'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @sslpfx_path = v
    when 'SSLPfxPassword'
      raise TypeError, "'v' expected String, got #{v.class}" unless v.is_a? String
      @sslpfx_password = v
    else
      @unknown_json_fields[k] = v
    end
  end
end