Method: ChefAPI::Schema#primary_key
- Defined in:
- lib/chef-api/schema.rb
#primary_key ⇒ Symbol
The defined primary key for this schema. If no primary key is given, it is assumed to be the first item in the list.
42 43 44 |
# File 'lib/chef-api/schema.rb', line 42 def primary_key @primary_key ||= @attributes.first[0] end |