Class: Presto::Client::ClientSession

Inherits:
Object
  • Object
show all
Defined in:
lib/presto/client/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ClientSession

Returns a new instance of ClientSession.



36
37
38
39
40
41
42
43
# File 'lib/presto/client/models.rb', line 36

def initialize(options)
  @server = options[:server]
  @user = options[:user]
  @source = options[:source]
  @catalog = options[:catalog]
  @schema = options[:schema]
  @debug = !!options[:debug]
end

Instance Attribute Details

#catalogObject (readonly)

Returns the value of attribute catalog.



48
49
50
# File 'lib/presto/client/models.rb', line 48

def catalog
  @catalog
end

#schemaObject (readonly)

Returns the value of attribute schema.



49
50
51
# File 'lib/presto/client/models.rb', line 49

def schema
  @schema
end

#serverObject (readonly)

Returns the value of attribute server.



45
46
47
# File 'lib/presto/client/models.rb', line 45

def server
  @server
end

#sourceObject (readonly)

Returns the value of attribute source.



47
48
49
# File 'lib/presto/client/models.rb', line 47

def source
  @source
end

#userObject (readonly)

Returns the value of attribute user.



46
47
48
# File 'lib/presto/client/models.rb', line 46

def user
  @user
end

Instance Method Details

#debug?Boolean

Returns:

  • (Boolean)


51
52
53
# File 'lib/presto/client/models.rb', line 51

def debug?
  @debug
end