Sha256: 94115631c9b84b3b1cb8f819231fc4e5e2029f99b77170860ec3c2b75a5bb185
Contents?: true
Size: 733 Bytes
Versions: 26
Compression:
Stored size: 733 Bytes
Contents
module TheCity class GroupAddressWriter < ApiWriter # Constructor. # # @param data The json object data to save. def initialize(data) if data[:id] @url_action = :put @url_data_path = "/groups/#{data[:group_id]}/addresses/#{data[:id]}" else @url_action = :post @url_data_path = "/groups/#{data[:group_id]}/addresses" end @url_data_delete_path = "/groups/#{data[:group_id]}/addresses/#{data[:id]}" @url_data_params = data @updatable_fields = [:city, :zipcode, :street, :location_type, :state] end end end
Version data entries
26 entries across 26 versions & 1 rubygems