Class: PaygatePk::Contracts::BearerToken

Inherits:
Struct
  • Object
show all
Defined in:
lib/paygate_pk/contracts/bearer_token.rb

Overview

Normalized wrapper for /token response. Some docs show only “refresh_token”; we expose both.

Instance Attribute Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token

Returns:

  • (Object)

    the current value of access_token



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def access_token
  @access_token
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def code
  @code
end

#expiryObject

Returns the value of attribute expiry

Returns:

  • (Object)

    the current value of expiry



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def expiry
  @expiry
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def message
  @message
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def raw
  @raw
end

#refresh_tokenObject

Returns the value of attribute refresh_token

Returns:

  • (Object)

    the current value of refresh_token



8
9
10
# File 'lib/paygate_pk/contracts/bearer_token.rb', line 8

def refresh_token
  @refresh_token
end