Class: Arel::SelectManager::Row
- Inherits:
-
Struct
- Object
- Struct
- Arel::SelectManager::Row
- Defined in:
- lib/arel/select_manager.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
252 253 254 255 256 |
# File 'lib/arel/select_manager.rb', line 252 def method_missing(name, *args) name = name.to_s return data[name] if data.key?(name) super end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
247 248 249 |
# File 'lib/arel/select_manager.rb', line 247 def data @data end |
Instance Method Details
#id ⇒ Object
248 249 250 |
# File 'lib/arel/select_manager.rb', line 248 def id data['id'] end |