class SphereEngine::Client
Attributes
access_token_compilers[RW]
access_token_problems[RW]
Public Class Methods
new(options = {}) { |self| ... }
click to toggle source
Initializes a new Client
object
@param options [Hash] @return [SphereEngine::Client]
# File lib/sphere_engine/client.rb, line 11 def initialize(options = {}) options.each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end
Public Instance Methods
credentials()
click to toggle source
@return [Hash]
# File lib/sphere_engine/client.rb, line 19 def credentials { access_token_compilers: access_token_compilers, access_token_problems: access_token_problems } end
credentials?()
click to toggle source
@return [Boolean]
# File lib/sphere_engine/client.rb, line 27 def credentials? credentials.values.all? end
get_token(service)
click to toggle source
# File lib/sphere_engine/client.rb, line 32 def get_token(service) return case service when :compilers access_token_compilers when :problems access_token_problems end end