Class: NovaposhtaApi::Resources::InternetDocumentResource

Inherits:
NovaposhtaApi::Resource show all
Defined in:
lib/novaposhta_api/resources/internet_document_resource.rb

Instance Attribute Summary

Attributes inherited from NovaposhtaApi::Resource

#http

Instance Method Summary collapse

Methods inherited from NovaposhtaApi::Resource

#initialize, #request

Constructor Details

This class inherits a constructor from NovaposhtaApi::Resource

Instance Method Details

#create(params = {}) ⇒ Object



6
7
8
9
10
# File 'lib/novaposhta_api/resources/internet_document_resource.rb', line 6

def create(params = {})
  response = request('InternetDocument/save', params)

  NovaposhtaApi::Models::InternetDocument.extract_single(response)
end