class Attio::Internal::Record

def to_h

Returns:
  • (Hash) - Record data as a hash
def to_h
  values = @attributes.except(:id, :created_at, :object_id, :object_api_slug)
  {
    id: id,
    object_id: attio_object_id,
    object_api_slug: object_api_slug,
    created_at: created_at&.iso8601,
    values: values
  }.compact
end