Module: Ym4r::Anonymizer

Defined in:
lib/ym4r/anonymizer.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

Version =
"0.0.2"

Class Method Summary collapse

Class Method Details

.configObject



30
31
32
# File 'lib/ym4r/anonymizer.rb', line 30

def self.config
  @config
end

.config=(v) ⇒ Object

Ym4r::Anonymizer.config = {

:proxy => { 
  :host => '127.0.0.1', 
  :port => 8123, 
  :username => 'user', 
  :password => 'pwd',
 },
:google_api_keys => [
  'ABQIAAAAzMUFFnT9uH0xq39J0Y4kbhTJQa0g3IQ9GZqIMmInSLzwtGDKaBR6j135zrztfTGVOm2QlWnkaidDIQ',
  'ABQIAAAADJ6dxjPhPP3j4JMcarDN1RS3zpQkq3Dy2kJjwfk7zLSQDM4mqxRSmAnhPMLC-mwJSRi2Kd5iUlHW6w',
],
:yahoo_app_ids => [
  'YellowMaps4R',
]

}



26
27
28
# File 'lib/ym4r/anonymizer.rb', line 26

def self.config=(v)
  @config = v
end

.included(klass) ⇒ Object



42
43
44
# File 'lib/ym4r/anonymizer.rb', line 42

def self.included(klass)
  klass.extend ClassMethods
end

.verbos=(v) ⇒ Object



34
35
36
# File 'lib/ym4r/anonymizer.rb', line 34

def self.verbos=(v)
  @verbos = v
end

.verbos?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'lib/ym4r/anonymizer.rb', line 38

def self.verbos?
  !!@verbos
end