Class: V1::SubjectSqlSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
api/app/serializers/v1/subject_sql_serializer.rb

Overview

The version of our subject driven by and joined to ranking

  {
    "code": "1",
    "company_id": 1,
    "email": "benjie@redjade.net",
    "id": 1,
    "name": "Ben G",
    "first_name": "Ben",
    "last_name": "G",
    "archived_at": null,
    "matches": null,
    "head_of_household": true,
    "household_id": 26,
    "date_of_birth": "1986-03-03",
    "quota_qualified": null,
    "full_exclusive_matches": null,
    "exclusive_required_misses": null,
    "bucket": null,
    "is_minor": false,
    "email_standing": "valid_email",
    "latest_outcome": null,
    "quota_rating": 1.3,
    "interaction_rating": "4.5",
    "engagement_rating": "4.516129032258064",
    "overall_score": null,
    "missing_quota_categories": null,
    "current_subject_consent_response_id": 1,
    "consented": true,
    "can_call": true,
    "can_email": true,
    "contact_exclusion_until_date": null
  }

Instance Method Summary collapse

Instance Method Details

#bucketObject

#date_of_birthObject

#engagement_ratingObject

#exclusive_required_missesObject

#full_exclusive_matchesObject

#interaction_ratingObject

#latest_outcomeObject

#matchesObject

#missing_quota_categoriesObject

#overall_scoreObject

#quota_qualifiedObject

#quota_ratingObject