Class: VORuby::Services::Schema::SchemaRetrieval::GetColumns
- Inherits:
-
SchemaRetrievalGeneric
- Object
- SchemaRetrievalGeneric
- VORuby::Services::Schema::SchemaRetrieval::GetColumns
- Includes:
- HTTPGetQuery
- Defined in:
- lib/voruby/services/schema/schema.rb
Overview
Gets the list of column names for a particular table.
Instance Attribute Summary collapse
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#query_timeout ⇒ Object
readonly
Returns the value of attribute query_timeout.
-
#response ⇒ Object
Returns the value of attribute response.
-
#ssl_files ⇒ Object
readonly
Returns the value of attribute ssl_files.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, table_name, ssl_files = nil, query_timeout = 30) ⇒ GetColumns
constructor
A new instance of GetColumns.
- #required_parameters ⇒ Object
- #to_s ⇒ Object
Methods included from HTTPGetQuery
#fetch, #query_timeout=, #ssl_files=, #uri=
Methods inherited from SchemaRetrievalGeneric
Constructor Details
#initialize(uri, table_name, ssl_files = nil, query_timeout = 30) ⇒ GetColumns
Returns a new instance of GetColumns.
516 517 518 519 520 521 522 523 524 525 526 |
# File 'lib/voruby/services/schema/schema.rb', line 516 def initialize(uri, table_name, ssl_files=nil, query_timeout=30) self.uri = uri self.table_name = table_name self.ssl_files = ssl_files self.query_timeout = query_timeout self.method = 'getColumns' self.response = nil end |
Instance Attribute Details
#method ⇒ Object (readonly)
Returns the value of attribute method.
513 514 515 |
# File 'lib/voruby/services/schema/schema.rb', line 513 def method @method end |
#query_timeout ⇒ Object (readonly)
Returns the value of attribute query_timeout.
513 514 515 |
# File 'lib/voruby/services/schema/schema.rb', line 513 def query_timeout @query_timeout end |
#response ⇒ Object
Returns the value of attribute response.
514 515 516 |
# File 'lib/voruby/services/schema/schema.rb', line 514 def response @response end |
#ssl_files ⇒ Object (readonly)
Returns the value of attribute ssl_files.
513 514 515 |
# File 'lib/voruby/services/schema/schema.rb', line 513 def ssl_files @ssl_files end |
#table_name ⇒ Object
Returns the value of attribute table_name.
513 514 515 |
# File 'lib/voruby/services/schema/schema.rb', line 513 def table_name @table_name end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
513 514 515 |
# File 'lib/voruby/services/schema/schema.rb', line 513 def uri @uri end |
Instance Method Details
#required_parameters ⇒ Object
532 533 534 |
# File 'lib/voruby/services/schema/schema.rb', line 532 def required_parameters [self.method.to_p, self.table_name.to_p] end |
#to_s ⇒ Object
536 537 538 |
# File 'lib/voruby/services/schema/schema.rb', line 536 def to_s super.to_s + ";table_name=#{self.table_name.to_s}" end |