lib/amee/session.rb in hookercookerman-amee-0.1.3 vs lib/amee/session.rb in hookercookerman-amee-0.1.4
- old
+ new
@@ -157,9 +157,10 @@
# @return [String] locaion of the new resource
def create_profile_item(path, uid, options = {})
@cache.clear
api_call(:post, "profile_item", path,
:query => {:dataItemUid => uid, :representation => "full"}.merge(options[:fields])) do |response|
+ return response if options[:hash_response]
Amee::ProfileApi::ProfileItem.from_hash(response, self)
end
end
# does not create a profile object compared to the create version
\ No newline at end of file