Class: Traits::AttributeList

Inherits:
List
  • Object
show all
Defined in:
lib/traits/list.rb

Instance Method Summary collapse

Methods inherited from List

#[], #by_name, #each, #filter, #first_where, #initialize, #to_hash

Constructor Details

This class inherits a constructor from Traits::List

Instance Method Details

#primary_keyObject



53
54
55
# File 'lib/traits/list.rb', line 53

def primary_key
  first_where(primary_key?: true)
end