Sha256: e11e17bf8585ae27726e58ed19c7388e26657d669c45b14f964ba8c3a36468ab

Contents?: true

Size: 234 Bytes

Versions: 2

Compression:

Stored size: 234 Bytes

Contents

require 'http'

module Selly
  module Operations
    module Create
      def create(params = {})
        HTTP.post("#{API_ROOT}#{resource_url}", headers: Selly.request_headers, form: params).parse
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
selly-1.1.2 lib/selly/operations/create.rb
selly-1.1.1 lib/selly/operations/create.rb