class Fabricio::Authorization::Session
This class is a data structure that holds tokens and identifiers necessary for making API requests.
Attributes
access_token[R]
organization_id[R]
refresh_token[R]
Public Class Methods
new(attributes = {}, organization_id = '')
click to toggle source
Initializes a new Session
object
@param attributes [Hash] Hash containing access and refresh tokens @option options [String] :access_token OAuth access token @option options [String] :refresh_token OAuth refresh token @param organization_id
[String] @return [Fabricio::Authorization::Session]
# File lib/fabricio/authorization/session.rb, line 14 def initialize(attributes = {}, organization_id = '') @access_token = attributes['access_token'] @refresh_token = attributes['refresh_token'] @organization_id = organization_id end