Class: Dadatas::Clean

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

Overview

Clean API

Constant Summary collapse

BASE_URL =
'https://cleaner.dadata.ru/api/v1/clean/'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ Clean

Returns a new instance of Clean.



12
13
14
# File 'lib/dadatas/clean.rb', line 12

def initialize(config)
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



10
11
12
# File 'lib/dadatas/clean.rb', line 10

def config
  @config
end

Instance Method Details

#address(query) ⇒ Object



16
17
18
# File 'lib/dadatas/clean.rb', line 16

def address(query)
  call_method('address', query.split(','))
end