Class: ClosureTree::Configuration

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
# File 'lib/closure_tree/configuration.rb', line 5

def initialize
  @database_less = ENV['DATABASE_URL'].to_s.include?('//user:[email protected]/')
end

Instance Attribute Details

#database_lessObject

Returns the value of attribute database_less.



3
4
5
# File 'lib/closure_tree/configuration.rb', line 3

def database_less
  @database_less
end