Sha256: 6280324c8047487b1fc7d30b7a8dad51655b703dea360f3e6a3d2830430a34f1

Contents?: true

Size: 377 Bytes

Versions: 16

Compression:

Stored size: 377 Bytes

Contents

module Pingpp
  module APIOperations
    module Create
      module ClassMethods
        def create(params={}, api_key=nil)
          response, api_key = Pingpp.request(:post, self.url, api_key, params)
          Util.convert_to_pingpp_object(response, api_key)
        end
      end

      def self.included(base)
        base.extend(ClassMethods)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
pingpp-2.0.15 lib/pingpp/api_operations/create.rb
pingpp-2.0.14 lib/pingpp/api_operations/create.rb
pingpp-2.0.13 lib/pingpp/api_operations/create.rb
pingpp-2.0.12 lib/pingpp/api_operations/create.rb
pingpp-2.0.11 lib/pingpp/api_operations/create.rb
pingpp-2.0.8 lib/pingpp/api_operations/create.rb
pingpp-2.0.7 lib/pingpp/api_operations/create.rb
pingpp-2.0.6 lib/pingpp/api_operations/create.rb
pingpp-2.0.5 lib/pingpp/api_operations/create.rb
pingpp-2.0.4 lib/pingpp/api_operations/create.rb
pingpp-2.0.3 lib/pingpp/api_operations/create.rb
pingpp-2.0.2 lib/pingpp/api_operations/create.rb
pingpp-2.0.1 lib/pingpp/api_operations/create.rb
pingpp-2.0.0 lib/pingpp/api_operations/create.rb
pingpp-1.0.3 lib/pingpp/api_operations/create.rb
pingpp-1.0.2 lib/pingpp/api_operations/create.rb