Sha256: c35a45a553312503927857e892548031bedf16b4bd39a60853e23badbbf23a45

Contents?: true

Size: 872 Bytes

Versions: 17

Compression:

Stored size: 872 Bytes

Contents

# frozen_string_literal: true
require_relative "../organization_light"
require_relative "../address"

module ONEAccess
  module DataObject
    module Representer
      class User < Representable::Decorator
        include Representable::JSON

        property :id, as: :Id, type: Integer
        property :first_name, as: :FirstName, type: String
        property :last_name, as: :LastName, type: String
        property :email, as: :Email, type: String
        property :phone, as: :Phone, type: String
        property :type, as: :Type, type: Integer
        property :active, as: :Active
        property :organization, as: :Organization,
          decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
        property :address, as: :Address,
           decorator: Representer::Address, class: DataObject::Address
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
oneaccess-0.4.4 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.4.3 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.4.2 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.4.1 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.4.0 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.3.0 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.2.0 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.9 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.8 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.7 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.6 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.5 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.4 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.3 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.2 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.1 lib/oneaccess/data_object/representer/user.rb
oneaccess-0.1.0 lib/oneaccess/data_object/representer/user.rb