Sha256: 142ac074109e419195d87e5e753c93e937cfa792ccb6e4dcf13074c5d8a42e98
Contents?: true
Size: 502 Bytes
Versions: 26
Compression:
Stored size: 502 Bytes
Contents
module TheCity class UserSkillWriter < ApiWriter # Constructor. # # @param data The json object data to save. def initialize(data) @url_action = :post @url_data_path = "/users/#{data[:user_id]}/skills" @url_data_delete_path = "/users/#{data[:user_id]}/skills/#{data[:skill_id] || data[:name]}" # user_id is not an option to submit with this path. data.delete(:user_id) @url_data_params = data end end end
Version data entries
26 entries across 26 versions & 1 rubygems