Class: Presto::Client::ClientSession
- Inherits:
-
Object
- Object
- Presto::Client::ClientSession
- Defined in:
- lib/presto/client/models.rb
Instance Attribute Summary collapse
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
- #debug? ⇒ Boolean
-
#initialize(options) ⇒ ClientSession
constructor
A new instance of ClientSession.
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() @server = [:server] @user = [:user] @source = [:source] @catalog = [:catalog] @schema = [:schema] @debug = !![:debug] end |
Instance Attribute Details
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog.
48 49 50 |
# File 'lib/presto/client/models.rb', line 48 def catalog @catalog end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
49 50 51 |
# File 'lib/presto/client/models.rb', line 49 def schema @schema end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
45 46 47 |
# File 'lib/presto/client/models.rb', line 45 def server @server end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
47 48 49 |
# File 'lib/presto/client/models.rb', line 47 def source @source end |
#user ⇒ Object (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
51 52 53 |
# File 'lib/presto/client/models.rb', line 51 def debug? @debug end |