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

Version Path
roqua-core-api-0.7.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.6.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.5.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.4.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.3.1 lib/roqua/core_api/models/person.rb
roqua-core-api-0.3.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.2.4 lib/roqua/core_api/models/person.rb
roqua-core-api-0.2.3 lib/roqua/core_api/models/person.rb
roqua-core-api-0.2.2 lib/roqua/core_api/models/person.rb
roqua-core-api-0.2.1 lib/roqua/core_api/models/person.rb
roqua-core-api-0.2.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.1.1 lib/roqua/core_api/models/person.rb
roqua-core-api-0.1.0 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.39 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.38 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.37 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.36 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.35 lib/roqua/core_api/models/person.rb
roqua-core-api-0.0.32 lib/roqua/core_api/models/person.rb