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