Sha256: 41deccadf38a0b87dbc8db190780a84ae9e05cc80d3865571472700ed91d69d3
Contents?: true
Size: 876 Bytes
Versions: 4
Compression:
Stored size: 876 Bytes
Contents
require 'sphere_engine/error' module SphereEngine class Client attr_accessor :access_token_compilers, :access_token_problems # Initializes a new Client object # # @param options [Hash] # @return [SphereEngine::Client] def initialize(options = {}) options.each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end # @return [Hash] def credentials { access_token_compilers: access_token_compilers, access_token_problems: access_token_problems } end # @return [Boolean] def credentials? credentials.values.all? end # @return[String] def get_token(service) return case service when :compilers access_token_compilers when :problems access_token_problems end end end end
Version data entries
4 entries across 4 versions & 1 rubygems