lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.1.9 vs lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.2.0
- old
+ new
@@ -15,16 +15,16 @@
# @todo This currently will not work as profile data_item brings back a profile_category
# How stupid is that!
def self.create(session, path, data_item_uid, fields ={})
- hash = session.create_profile_item(path, data_item_uid, {:fields => fields, :hash_response => true})
+ hash = session.create_profile_item(path, data_item_uid, {:query => fields, :raw_response => true})
self.from_hash(hash, session)
end
def update(fields = {})
session.api_call(:put, "profile_item", self.full_path,
- :query => fields.merge({:representation => true})) do |response|
+ :query => fields) do |response|
populate_from_hash!(response)
self
end
end
\ No newline at end of file