Method: Buff::Client::Update#modify_update_text

Defined in:
lib/buff/update.rb

#modify_update_text(update_id, options = {}) ⇒ Object



63
64
65
66
67
68
# File 'lib/buff/update.rb', line 63

def modify_update_text(update_id, options={})
  # text, (now, media, utc)
  options.fetch(:text) { raise ArgumentError }
  response = post("/updates/#{update_id}/update.json", options)
  Hashie::Mash.new(JSON.parse response.body)
end