Sha256: 86d1bbe19862b0534d64180fd09ecc2943d02e14cf6b9d71d5d65958a4687159

Contents?: true

Size: 309 Bytes

Versions: 4

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module NovaposhtaApi
  module Resources
    class InternetDocumentResource < Resource
      def create(params = {})
        response = request('InternetDocument/save', params)

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
novaposhta_api-0.2.1 lib/novaposhta_api/resources/internet_document_resource.rb
novaposhta_api-0.2.0 lib/novaposhta_api/resources/internet_document_resource.rb
novaposhta_api-0.1.9 lib/novaposhta_api/resources/internet_document_resource.rb
novaposhta_api-0.1.8 lib/novaposhta_api/resources/internet_document_resource.rb