Class: SpheroBase

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

Overview

mod

Direct Known Subclasses

SpheroClient, SpheroRequest, SpheroResponse

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#debugObject

Returns the value of attribute debug.



46
47
48
# File 'lib/rubysphero.rb', line 46

def debug
  @debug
end

Instance Method Details

#logd(log_str = "") ⇒ Object



48
49
50
51
52
53
54
# File 'lib/rubysphero.rb', line 48

def logd(log_str="")
	if @debug==nil then
		# chill.
	elsif @debug==true then
		puts DateTime.now.strftime("%Y-%m-%d %H:%M:%S.%L") + " " + log_str
	end # elsif 
end