Class: Prevoty::Column
- Inherits:
-
Object
- Object
- Prevoty::Column
- Defined in:
- lib/prevoty/responses/query_analysis.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#database ⇒ Object
readonly
Returns the value of attribute database.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
-
#initialize(data) ⇒ Column
constructor
A new instance of Column.
- #to_json(options) ⇒ Object
Constructor Details
#initialize(data) ⇒ Column
Returns a new instance of Column.
135 136 137 138 139 |
# File 'lib/prevoty/responses/query_analysis.rb', line 135 def initialize(data) @database = data["database"] @table = data["table"] @column = data["column"] end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
133 134 135 |
# File 'lib/prevoty/responses/query_analysis.rb', line 133 def column @column end |
#database ⇒ Object (readonly)
Returns the value of attribute database.
133 134 135 |
# File 'lib/prevoty/responses/query_analysis.rb', line 133 def database @database end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
133 134 135 |
# File 'lib/prevoty/responses/query_analysis.rb', line 133 def table @table end |
Instance Method Details
#to_json(options) ⇒ Object
141 142 143 144 145 |
# File 'lib/prevoty/responses/query_analysis.rb', line 141 def to_json() return { database: @database, table: @table, column: @column }.to_json end |