Sha256: e9f4cd24fdd0e479ecb85779aba09381e6fcbf894d05bfa01a0f8517f02f4026

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

require 'truelayer/base_model'

module Truelayer
  class Token < BaseModel
    attributes :access_token, :expires_in, :token_type, :refresh_token, :scope

    def scopes
      scope.to_s.split
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
truelayer-0.1.4 lib/truelayer/token.rb
truelayer-0.1.3 lib/truelayer/token.rb
truelayer-0.1.2 lib/truelayer/token.rb
truelayer-0.1.1 lib/truelayer/token.rb