Sha256: 4f4df4173ef6e8d8e7ec2d9bac9915671ae31f2955f46529b8dc547339c63f38
Contents?: true
Size: 474 Bytes
Versions: 26
Compression:
Stored size: 474 Bytes
Contents
module TheCity class TagWriter < ApiWriter # Constructor. # # @param data The json data to save. def initialize(data) if data[:id] @url_action = :put @url_data_path = "/tags/#{data[:id]}" else @url_action = :post @url_data_path = "/tags" end @url_data_delete_path = "/tags/#{data[:id]}" @url_data_params = data @updatable_fields = [:name] end end end
Version data entries
26 entries across 26 versions & 1 rubygems