Sha256: 774d3dcbdf8ef57250d5f7637a963ed1fbbbd563fa2ef67ea5e818e00b8b5659

Contents?: true

Size: 760 Bytes

Versions: 5

Compression:

Stored size: 760 Bytes

Contents

# frozen_string_literal: true

require_relative "../providers_user_details_vendor"

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

        property :id, type: Integer
        property :user_rev_ent_status, as: :userreventstatus, type: String
        property :first_name, as: :firstname, type: String
        property :last_name, as: :lastname, type: String
        property :email, type: String
        property :vendors_count, as: :vendorscount, type: Integer
        collection :vendors, decorator: Representer::ProvidersUserDetailsVendor,
                             class:     DataObject::ProvidersUserDetailsVendor
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/data_object/representer/providers_user_details.rb
oneaccess-1.1.0 lib/oneaccess/data_object/representer/providers_user_details.rb
oneaccess-1.0.1 lib/oneaccess/data_object/representer/providers_user_details.rb
oneaccess-1.0.0 lib/oneaccess/data_object/representer/providers_user_details.rb
oneaccess-0.5.0 lib/oneaccess/data_object/representer/providers_user_details.rb