Sha256: 87cb5973c8234d2ec6a7da1d72e34caeed49096e48be117f400affce4f2f9c72

Contents?: true

Size: 992 Bytes

Versions: 6

Compression:

Stored size: 992 Bytes

Contents

# frozen_string_literal: true

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

        property :receive_date, as: :ReceiveDate, type: Time,
          parse_filter: ->(value, _) { value&.size&.positive? ? Time.parse(value) : nil }
        property :provider_org_id, as: :ProviderOrgId, type: Integer
        property :email_inducement_id, as: :EmailInducementId, type: Integer
        property :recipient_user_id, as: :RecipientUserId, type: Integer
        property :sender_user_id, as: :SenderUserId, type: Integer
        property :email_inducement_status_id, as: :EmailInducementStatusId, type: Integer
        property :body, as: :Body, type: String
        property :processed_date, as: :ProcessedDate, type: Time,
          parse_filter: ->(value, _) { value&.size&.positive? ? Time.parse(value) : nil }
        property :subject, as: :Subject, type: String
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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