Sha256: d6e10c383035b25dbb94b62eeaed590019772b39fe331fcda8ae047d7fcf6602
Contents?: true
Size: 698 Bytes
Versions: 24
Compression:
Stored size: 698 Bytes
Contents
module Economic # The Economic::Session contains details and behaviors for a current # connection to the API endpoint. class Session class << self def authentication(private_app_id, access_id) @private_app_id = private_app_id @access_id = access_id end alias authenticate authentication def app_secret_token raise ArgumentError, "Authentication tokens not set, Call Session.authentication" if @private_app_id.nil? @private_app_id end def agreement_grant_token raise ArgumentError, "Authentication tokens not set, Call Session.authentication" if @access_id.nil? @access_id end end end end
Version data entries
24 entries across 24 versions & 1 rubygems