Sha256: 87f0aeda6ca83fcb587c9a0536d8b068fb316f00bf2ea801d140fd1b02b07a23

Contents?: true

Size: 427 Bytes

Versions: 24

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true
module FinApps
  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

24 entries across 24 versions & 1 rubygems

Version Path
finapps-2.1.4 lib/finapps/rest/credentials.rb
finapps-2.1.3 lib/finapps/rest/credentials.rb
finapps-2.1.2 lib/finapps/rest/credentials.rb
finapps-2.1.1 lib/finapps/rest/credentials.rb
finapps-2.0.30 lib/finapps/rest/credentials.rb
finapps-2.0.29 lib/finapps/rest/credentials.rb
finapps-2.0.28 lib/finapps/rest/credentials.rb
finapps-2.0.27 lib/finapps/rest/credentials.rb
finapps-2.0.26 lib/finapps/rest/credentials.rb
finapps-2.0.25 lib/finapps/rest/credentials.rb
finapps-2.0.24 lib/finapps/rest/credentials.rb
finapps-2.0.23 lib/finapps/rest/credentials.rb
finapps-2.0.22 lib/finapps/rest/credentials.rb
finapps-2.0.21 lib/finapps/rest/credentials.rb
finapps-2.0.20 lib/finapps/rest/credentials.rb
finapps-2.0.19 lib/finapps/rest/credentials.rb
finapps-2.0.17 lib/finapps/rest/credentials.rb
finapps-2.0.16 lib/finapps/rest/credentials.rb
finapps-2.0.15 lib/finapps/rest/credentials.rb
finapps-2.0.14 lib/finapps/rest/credentials.rb