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