Sha256: f9ca2ac87bc36a13a20dec2c93e1c6fea550bcc6e1c65529129332f14d9de297

Contents?: true

Size: 867 Bytes

Versions: 2

Compression:

Stored size: 867 Bytes

Contents

# frozen_string_literal: true

require_relative '../providers_user_details'

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

        property :provider_id, as: :providerid, type: Integer
        property :buy_side_org_id, as: :buysideorgid, type: Integer
        property :provider_name, as: :providername, type: String
        property :contract_status, as: :contractstatus, type: String
        property :contract_status_id, as: :contractstatusid, type: String
        property :buy_side_org_name, as: :buysideorgname, type: String
        property :users_count, as: :userscount, type: Integer
        collection :users,
          decorator: Representer::ProvidersUserDetails,
          class: DataObject::ProvidersUserDetails
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
oneaccess-1.3.1 lib/oneaccess/data_object/representer/providers_users_details.rb
oneaccess-1.3.0 lib/oneaccess/data_object/representer/providers_users_details.rb