Sha256: e46967deeab64ecab549077bdc1de2cf17a13d7589e8d0f56f4a09c39f9e24d5
Contents?: true
Size: 722 Bytes
Versions: 2
Compression:
Stored size: 722 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 validates :role, inclusion: { in: %w( admin professional patient parent ) } def persisted? id.present? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roqua-core-api-0.0.31 | lib/roqua/core_api/models/person.rb |
roqua-core-api-0.0.30 | lib/roqua/core_api/models/person.rb |