Sha256: 1a7a9d6a0f94cb1f44ee25bc439a544514876b6efb88b8ae38b4f58a04563f4b

Contents?: true

Size: 222 Bytes

Versions: 27

Compression:

Stored size: 222 Bytes

Contents

module Loquor
  class ApiCall::Create < ApiCall

    def initialize(klass, payload)
      super(klass)
      @payload = payload
    end

    def execute
      klass.new Loquor.post(klass.path, @payload)
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
loquor-1.13.0 lib/loquor/api_calls/create.rb
loquor-1.12.0 lib/loquor/api_calls/create.rb
loquor-1.11.0 lib/loquor/api_calls/create.rb
loquor-1.10.0 lib/loquor/api_calls/create.rb
loquor-1.9.0 lib/loquor/api_calls/create.rb
loquor-1.8.0 lib/loquor/api_calls/create.rb
loquor-1.7.0 lib/loquor/api_calls/create.rb
loquor-1.6.0 lib/loquor/api_calls/create.rb
loquor-1.5.0 lib/loquor/api_calls/create.rb
loquor-1.4.0 lib/loquor/api_calls/create.rb
loquor-1.3.0 lib/loquor/api_calls/create.rb
loquor-1.2.1 lib/loquor/api_calls/create.rb
loquor-1.2.0 lib/loquor/api_calls/create.rb
loquor-1.1.1 lib/loquor/api_calls/create.rb
loquor-1.1.0 lib/loquor/api_calls/create.rb
loquor-1.0.0 lib/loquor/api_calls/create.rb
loquor-0.9.0 lib/loquor/api_calls/create.rb
loquor-0.8.0 lib/loquor/api_calls/create.rb
loquor-0.7.0 lib/loquor/api_calls/create.rb
loquor-0.6.0 lib/loquor/api_calls/create.rb