Class: Presto::Client::Column
- Inherits:
-
Object
- Object
- Presto::Client::Column
- Defined in:
- lib/presto/client/models.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Column
constructor
A new instance of Column.
Constructor Details
#initialize(options = {}) ⇒ Column
Returns a new instance of Column.
22 23 24 25 |
# File 'lib/presto/client/models.rb', line 22 def initialize(={}) @name = [:name] @type = [:type] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/presto/client/models.rb', line 19 def name @name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
20 21 22 |
# File 'lib/presto/client/models.rb', line 20 def type @type end |
Class Method Details
.decode_hash(hash) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/presto/client/models.rb', line 27 def self.decode_hash(hash) new( name: hash["name"], type: hash["type"], ) end |