Class: ActiveRecord::FixtureSet::TableRow
- Defined in:
- lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb
Overview
:nodoc:
Defined Under Namespace
Classes: HasManyThroughProxy, PrimaryKeyError, 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.
65 66 67 68 69 70 71 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 65 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
73 74 75 |
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 73 def to_hash @row end |