Module: Pebble
- Defined in:
- lib/pebble.rb,
lib/pebble/watch.rb,
lib/pebble/version.rb,
lib/pebble/protocol.rb,
lib/pebble/endpoints.rb,
lib/pebble/watch/event.rb,
lib/pebble/capabilities.rb,
lib/pebble/system_messages.rb,
lib/pebble/watch/log_event.rb,
lib/pebble/watch/media_control_event.rb,
lib/pebble/watch/system_message_event.rb
Defined Under Namespace
Modules: Capabilities, Endpoints, SystemMessages
Classes: Protocol, Watch
Constant Summary
collapse
- VERSION =
"0.0.3"
Class Method Summary
collapse
Class Method Details
.default_logger ⇒ Object
13
14
15
16
17
|
# File 'lib/pebble.rb', line 13
def self.default_logger
logger = Logger.new(STDOUT)
logger.level = Logger::INFO
logger
end
|
.logger ⇒ Object
8
9
10
11
|
# File 'lib/pebble.rb', line 8
def self.logger
return @@logger if defined?(@@logger)
@@logger = default_logger
end
|
.logger=(new_logger) ⇒ Object
4
5
6
|
# File 'lib/pebble.rb', line 4
def self.logger=(new_logger)
@@logger = new_logger
end
|