Sha256: 22e42b12c042f018233e5f9528a810428ccb707f1c13c9e5c0e9dc4818ed7c10
Contents?: true
Size: 756 Bytes
Versions: 19
Compression:
Stored size: 756 Bytes
Contents
require 'virtus' class Roqua::CoreApi::Models::Person < Roqua::CoreApi::Models::ActiveVirtus attribute :id, String attribute :role, String attribute :firstname, String attribute :lastname, String attribute :initials, String attribute :email, String attribute :phone_home, String attribute :phone_work, String attribute :phone_cell, String attribute :birthdate, Date attribute :gender, String attribute :country_of_birth, String attribute :address_type, String attribute :street, String attribute :city, String attribute :zipcode, String attribute :country, String attribute :subject_code, String validates :role, inclusion: { in: %w( admin professional patient parent ) } def persisted? id.present? end end
Version data entries
19 entries across 19 versions & 1 rubygems