Sha256: 24fc2095b52c867e021e404143d2ffc5598e1f54748727a936686af52e24cbc2

Contents?: true

Size: 855 Bytes

Versions: 15

Compression:

Stored size: 855 Bytes

Contents

# frozen_string_literal: true

require_relative "./representer/user_entitlement_request"

module ONEAccess
  module DataObject
    class UserEntitlementRequest
      extend Serializable

      represented_by Representer::UserEntitlementRequest

      attr_accessor :id
      attr_accessor :create_date
      attr_accessor :update_date
      attr_accessor :notes
      attr_accessor :status
      attr_accessor :user
      attr_accessor :buy_side_org
      attr_accessor :sell_side_org
      attr_accessor :sell_side_user_groups

      def pending?
        status == EntitlementStatus::NONE
      end

      def approved?
        status == EntitlementStatus::APPROVED
      end

      def rejected?
        status == EntitlementStatus::REJECTED
      end

      def provisional?
        status == EntitlementStatus::PROVISIONAL
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
oneaccess-1.2.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-1.1.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-1.0.1 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-1.0.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.5.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.5 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.4 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.3 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.2 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.1 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.4.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.3.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.2.0 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.1.9 lib/oneaccess/data_object/user_entitlement_request.rb
oneaccess-0.1.8 lib/oneaccess/data_object/user_entitlement_request.rb