Class: Arel::SelectManager::Row

Inherits:
Struct
  • Object
show all
Defined in:
lib/arel/select_manager.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



258
259
260
261
262
# File 'lib/arel/select_manager.rb', line 258

def method_missing(name, *args)
  name = name.to_s
  return data[name] if data.key?(name)
  super
end

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



253
254
255
# File 'lib/arel/select_manager.rb', line 253

def data
  @data
end

Instance Method Details

#idObject



254
255
256
# File 'lib/arel/select_manager.rb', line 254

def id
  data['id']
end