lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.2.1 vs lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.6.0

- old
+ new

@@ -19,12 +19,12 @@ def self.create(session, path, data_item_uid, fields ={}) hash = session.create_profile_item(path, data_item_uid, {:query => fields, :raw_response => true}) self.from_hash(hash, session) end - def update(fields = {}) + def update(fields = {}, representation = false) session.api_call(:put, "profile_item", self.full_path, - :query => fields) do |response| + :query => fields.merge(:representation => representation ? "full" : "")) do |response| populate_from_hash!(response) self end end \ No newline at end of file