Sha256: c68481e6cb0c9580d943fd4a79e1e8deff545af42c2ee7d6e4a6af3f57c3bdc2

Contents?: true

Size: 436 Bytes

Versions: 38

Compression:

Stored size: 436 Bytes

Contents

module Octobat
  module APIOperations
    module Create
      module ClassMethods
        def create(params={}, opts={})
          api_key, headers = Util.parse_opts(opts)
          response, api_key = Octobat.request(:post, self.url, api_key, params, headers)
          Util.convert_to_octobat_object(response, api_key)
        end
      end

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

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
octobat-2.0.27 lib/octobat/api_operations/create.rb
octobat-2.0.26 lib/octobat/api_operations/create.rb
octobat-2.0.25 lib/octobat/api_operations/create.rb
octobat-2.0.24 lib/octobat/api_operations/create.rb
octobat-2.0.23 lib/octobat/api_operations/create.rb
octobat-2.0.22 lib/octobat/api_operations/create.rb
octobat-2.0.21 lib/octobat/api_operations/create.rb
octobat-2.0.20 lib/octobat/api_operations/create.rb
octobat-2.0.19 lib/octobat/api_operations/create.rb
octobat-2.0.18 lib/octobat/api_operations/create.rb
octobat-2.0.17 lib/octobat/api_operations/create.rb
octobat-2.0.16 lib/octobat/api_operations/create.rb
octobat-2.0.15 lib/octobat/api_operations/create.rb
octobat-2.0.14 lib/octobat/api_operations/create.rb
octobat-2.0.12 lib/octobat/api_operations/create.rb
octobat-2.0.11 lib/octobat/api_operations/create.rb
octobat-2.0.10 lib/octobat/api_operations/create.rb
octobat-2.0.9 lib/octobat/api_operations/create.rb
octobat-2.0.8 lib/octobat/api_operations/create.rb
octobat-2.0.7 lib/octobat/api_operations/create.rb