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