Class: ActiveRecord::FixtureSet::TableRow
- Inherits:
 - 
      Object
      
        
- Object
 - ActiveRecord::FixtureSet::TableRow
 
 
- Defined in:
 - lib/active_record/fixture_set/table_row.rb
 
Overview
:nodoc:
Defined Under Namespace
Classes: HasManyThroughProxy, ReflectionProxy
Instance Method Summary collapse
- 
  
    
      #initialize(fixture, table_rows:, label:, now:)  ⇒ TableRow 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of TableRow.
 - #to_hash ⇒ Object
 
Constructor Details
#initialize(fixture, table_rows:, label:, now:) ⇒ TableRow
Returns a new instance of TableRow.
      38 39 40 41 42 43 44  | 
    
      # File 'lib/active_record/fixture_set/table_row.rb', line 38 def initialize(fixture, table_rows:, label:, now:) @table_rows = table_rows @label = label @now = now @row = fixture.to_hash fill_row_model_attributes end  | 
  
Instance Method Details
#to_hash ⇒ Object
      46 47 48  | 
    
      # File 'lib/active_record/fixture_set/table_row.rb', line 46 def to_hash @row end  |