Class: Campfire::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/campfire/configuration.rb

Direct Known Subclasses

FileConfiguration

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_tokenObject

Returns the value of attribute api_token


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def api_token
  @api_token
end

#config_dirObject

Returns the value of attribute config_dir


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def config_dir
  @config_dir
end

#datauriObject

Returns the value of attribute datauri


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def datauri
  @datauri
end

#google_api_keyObject

Returns the value of attribute google_api_key


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def google_api_key
  @google_api_key
end

#loggerObject

Returns the value of attribute logger


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def logger
  @logger
end

#roomObject

Returns the value of attribute room


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def room
  @room
end

#ssl_verifyObject

Returns the value of attribute ssl_verify


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def ssl_verify
  @ssl_verify
end

#subdomainObject

Returns the value of attribute subdomain


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def subdomain
  @subdomain
end

#verboseObject Also known as: verbose?

Returns the value of attribute verbose


28
29
30
# File 'lib/campfire/configuration.rb', line 28

def verbose
  @verbose
end

Instance Method Details

#reload!Object


46
47
# File 'lib/campfire/configuration.rb', line 46

def reload!
end

#validate!Object


38
39
40
41
42
43
44
# File 'lib/campfire/configuration.rb', line 38

def validate!
  api_token or raise ConfigurationError, 'no api token given'
  subdomain or raise ConfigurationError, 'no subdomain given'
  room      or raise ConfigurationError, 'no room given'
  datauri   or raise ConfigurationError, 'no datauri given'
  logger    or raise ConfigurationError, 'no logger given'
end