Sha256: 90e2a8ccddc71eb4eb192ae0aeb5cc13bbd349129edfb82d274bb7504dc2b546

Contents?: true

Size: 431 Bytes

Versions: 14

Compression:

Stored size: 431 Bytes

Contents

# frozen_string_literal: true
module FinAppsCore
  module REST
    # represents both tenant and user credentials
    class Credentials
      using ObjectExtensions
      using StringExtensions

      attr_reader :identifier, :token

      def initialize(identifier, token)
        @identifier = identifier
        @token = token
      end

      def valid?
        identifier.present? && token.present?
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
finapps_core-2.0.15 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.14 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.13 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.12 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.11 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.10 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.9 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.8 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.7 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.6 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.5 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.4 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.3 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.2 lib/finapps_core/rest/credentials.rb