Class: Croket::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
19
# File 'lib/croket/configuration.rb', line 13

def initialize
  @host = 'croket.mobi'
@logger = ::Rails.logger
@root_path = ::Rails.root
@environment = ::Rails.env
@environment_blacklist = [:test, :development]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def api_key
  @api_key
end

#environmentObject

Returns the value of attribute environment.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def environment
  @environment
end

#environment_blacklistObject

Returns the value of attribute environment_blacklist.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def environment_blacklist
  @environment_blacklist
end

#hostObject

Returns the value of attribute host.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def host
  @host
end

#loggerObject

Returns the value of attribute logger.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def logger
  @logger
end

#packageObject

Returns the value of attribute package.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def package
  @package
end

#root_pathObject

Returns the value of attribute root_path.



11
12
13
# File 'lib/croket/configuration.rb', line 11

def root_path
  @root_path
end