Sha256: 152126bf55f24b8d05e37b3285232e4e3b47da3a4d32779b327319fb5cf04b3c
Contents?: true
Size: 523 Bytes
Versions: 26
Compression:
Stored size: 523 Bytes
Contents
module TheCity class UserNoteWriter < ApiWriter # Constructor. # # @param data The json object data to save. def initialize(data) if data[:id] @url_action = :put @url_data_path = "/users/#{data[:author_id]}/notes/#{data[:id]}" else @url_action = :post @url_data_path = "/users/#{data[:author_id]}/notes" end @url_data_delete_path = "/users/#{data[:author_id]}/notes/#{data[:id]}" @url_data_params = data end end end
Version data entries
26 entries across 26 versions & 1 rubygems