Module: ForeignKeyInfo::Constructors
- Included in:
- ForeignKeyInfo
- Defined in:
- lib/dart/core/foreign_key_info.rb
Instance Method Summary collapse
Instance Method Details
#from_hash(attrs) ⇒ Object
3 4 5 |
# File 'lib/dart/core/foreign_key_info.rb', line 3 def from_hash(attrs) new(attrs[:child_table], attrs[:foreign_key], attrs[:parent_table], attrs[:primary_key]) end |