Sha256: a3a6c102991c41bd16b58d51cfe7b3e2402d98ce3d1e1b35cec1dc1af94b582f

Contents?: true

Size: 251 Bytes

Versions: 26

Compression:

Stored size: 251 Bytes

Contents

module Loquor
  class ApiCall::Update < ApiCall

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

    def execute
      klass.new Loquor.put("#{klass.path}/#{@id}", @payload)
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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