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-0.5.4 lib/loquor/api_calls/create.rb
loquor-0.5.3 lib/loquor/api_calls/create.rb
loquor-0.5.2 lib/loquor/api_calls/create.rb
loquor-0.5.1 lib/loquor/api_calls/create.rb
loquor-0.5.0 lib/loquor/api_calls/create.rb
loquor-0.4.0 lib/loquor/api_calls/create.rb
loquor-0.3.0 lib/loquor/api_calls/create.rb