Module: PropertySolutions

Defined in:
lib/propertysolutions.rb,
lib/property_solutions/engine.rb,
lib/property_solutions/version.rb,
app/models/property_solutions/unit.rb,
app/models/property_solutions/phone.rb,
app/models/property_solutions/units.rb,
app/models/property_solutions/address.rb,
app/models/property_solutions/property.rb,
app/models/property_solutions/properties.rb

Defined Under Namespace

Classes: Address, ApiConsumer, Engine, Phone, Properties, Property, Unit, Units

Constant Summary collapse

VERSION =
'0.0.14'
@@domain =
''
@@username =
''
@@password =
''

Class Method Summary collapse

Class Method Details

.log(message, title = nil) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/property_solutions/engine.rb', line 6

def PropertySolutions.log(message, title = nil)
  if (Rails.logger.nil?)
    puts "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
    puts title.to_s unless title.nil?
    puts message
    puts ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n"
  else
    Rails.logger.debug("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>")
    Rails.logger.debug(title.to_s) unless title.nil?
    Rails.logger.debug(message)
    Rails.logger.debug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n")
  end
end