Sha256: 77d44ea204a49d3cc05332275fb7cff96969ef098c6b6747e3b770d7e58b6793

Contents?: true

Size: 389 Bytes

Versions: 6

Compression:

Stored size: 389 Bytes

Contents

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

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rainforest-1.0.7 lib/rainforest/api_operations/create.rb
rainforest-1.0.6 lib/rainforest/api_operations/create.rb
rainforest-1.0.5 lib/rainforest/api_operations/create.rb
rainforest-1.0.4 lib/rainforest/api_operations/create.rb
rainforest-1.0.3 lib/rainforest/api_operations/create.rb
rainforest-1.0.1 lib/rainforest/api_operations/create.rb