Class: Homeflow::API::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/homeflow/api.rb

Overview

A configuration instance

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



68
69
70
71
72
73
74
# File 'lib/homeflow/api.rb', line 68

def initialize
  @request_key = ''
  @api_key = 'API_KEY_REQUIRED'
  @source = 'http://localhost:3000'
  @show_debug = false
  @logger = nil
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



66
67
68
# File 'lib/homeflow/api.rb', line 66

def api_key
  @api_key
end

#loggerObject

Returns the value of attribute logger.



66
67
68
# File 'lib/homeflow/api.rb', line 66

def logger
  @logger
end

#request_keyObject

Returns the value of attribute request_key.



66
67
68
# File 'lib/homeflow/api.rb', line 66

def request_key
  @request_key
end

#show_debugObject

Returns the value of attribute show_debug.



66
67
68
# File 'lib/homeflow/api.rb', line 66

def show_debug
  @show_debug
end

#sourceObject

Returns the value of attribute source.



66
67
68
# File 'lib/homeflow/api.rb', line 66

def source
  @source
end