class GoogleDistanceMatrix::Logger

Logger class for Google Distance Matrix

Constants

LEVELS
PREFIXES

Attributes

backend[R]

Public Class Methods

new(backend = nil) click to toggle source
# File lib/google_distance_matrix/logger.rb, line 11
def initialize(backend = nil)
  @backend = backend
end

Private Instance Methods

tag_msg(msg, tags) click to toggle source
# File lib/google_distance_matrix/logger.rb, line 28
def tag_msg(msg, tags)
  msg_buffer = tags.map { |tag| "[#{tag}]" }
  msg_buffer << msg
  msg_buffer.join ' '
end