Class: Msewage::Importer::API
- Inherits:
-
Object
- Object
- Msewage::Importer::API
- Defined in:
- lib/msewage-importer/api.rb
Instance Method Summary collapse
-
#initialize(config = Config.new) ⇒ API
constructor
A new instance of API.
- #insert(record) ⇒ Object
Constructor Details
Instance Method Details
#insert(record) ⇒ Object
10 11 12 13 14 |
# File 'lib/msewage-importer/api.rb', line 10 def insert(record) res = HTTParty.put(new_source_url, :body => new_source_body(record)) !res["code"].nil? print "." end |