Class: Dadatas::Clean
- Inherits:
-
Object
- Object
- Dadatas::Clean
- 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
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #address(query) ⇒ Object
-
#initialize(config) ⇒ Clean
constructor
A new instance of Clean.
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
#config ⇒ Object (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 |