Method: ContextIO::API::Resource#primary_key

Defined in:
lib/contextio/api/resource.rb

#primary_keyString, Symbol (readonly)

Returns The name of the key used to build the resource URL.

Returns:

  • (String, Symbol)

    The name of the key used to build the resource URL.



67
68
69
# File 'lib/contextio/api/resource.rb', line 67

def primary_key
  self.class.primary_key
end