Sha256: 3209fbe1aa02a3cc48802e03ec50a2fffada77e097dc0af963b828a331ddcf2b

Contents?: true

Size: 366 Bytes

Versions: 1

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true
module FinAppsCore
  module REST
    # represents both tenant and user credentials
    class Credentials
      attr_reader :identifier, :token

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

      def valid?
        !identifier.nil? && !token.nil?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finapps_core-2.0.16 lib/finapps_core/rest/credentials.rb