Class: LightSide::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/lightside/config.rb

Class Method Summary collapse

Class Method Details

.configured?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/lightside/config.rb', line 18

def self.configured?
  auth_token && base_url
end

.headersObject



14
15
16
# File 'lib/lightside/config.rb', line 14

def self.headers
  { "Authorization" => "Token #{auth_token}", "Content-Type" => "application/json" }
end