Sha256: b78b07cd346c238a731c00a57f95f883308540c1f2b5df15faf181d9170775ad
Contents?: true
Size: 419 Bytes
Versions: 10
Compression:
Stored size: 419 Bytes
Contents
module RdInsightly class Auth attr_reader :api_token def initialize(api_token) @api_token = api_token end def self.create(api_token = nil) fail ApiTokenException if api_token.nil? Auth.new(api_token) end def authorized? @api_token = nil unless ApiInsightly.authentication !@api_token.nil? end def self.loggout @api_token = nil end end end
Version data entries
10 entries across 10 versions & 1 rubygems