Sha256: b9502e84ebe3062ce2cfeb97e38d40c9d045b6b06abf0c37383d4d96614cadae

Contents?: true

Size: 389 Bytes

Versions: 4

Compression:

Stored size: 389 Bytes

Contents

module Peakium
  module APIOperations
    module Create
      module ClassMethods
        def create(params={}, api_key=nil)
          response, api_key = Peakium.request(:post, self.endpoint_url, api_key, params)
          Util.convert_to_peakium_object(response, api_key)
        end
      end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peakium-0.1.4 lib/peakium/api_operations/create.rb
peakium-0.1.3 lib/peakium/api_operations/create.rb
peakium-0.1.2 lib/peakium/api_operations/create.rb
peakium-0.1.1 lib/peakium/api_operations/create.rb