Sha256: d01dac8ef73907398b38b6a2d5fc213541be20f7f4f2a1af0dc13a2ee630a0c0
Contents?: true
Size: 761 Bytes
Versions: 8
Compression:
Stored size: 761 Bytes
Contents
module FellowshipOne class CommunicationWriter < ApiWriter # Constructor. # Note: writer will get data after it has been mapped to the FellowshipOne # resource so the hash keys will be the same as FellowshipOne # # @param data The json object data to save. def initialize(data) if data[:id] @url_action = :put @url_data_path = "/v1/People/#{data['person']['@id']}/Communications/#{data['@id']}" else @url_action = :post @url_data_path = "/v1/People/#{data['person']['@id']}/Communications" end @url_data_delete_path = "/v1/Communications/#{data['@id']}" @url_data_params = @url_data_params = {:communication => data} @updatable_fields = [] end end end
Version data entries
8 entries across 8 versions & 1 rubygems