Sha256: 268ad77017007c73b9fae9eb0c4b185cea74b1b4f02c2cf4ac25e69fa3fc5abc

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 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?
        !token.nil?
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
finapps_core-2.0.20 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.19 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.18 lib/finapps_core/rest/credentials.rb
finapps_core-2.0.17 lib/finapps_core/rest/credentials.rb