lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.1.1 vs lib/amee/profile_api/profile_item.rb in hookercookerman-amee-0.1.2
- old
+ new
@@ -21,12 +21,12 @@
def update(fields = {})
session.api_call(:put, "profile_item", self.full_path,
:query => fields.merge({:representation => true})) do |response|
populate_from_hash!(response)
+ self
end
- self
end
def destroy
session.delete_profile_item(self.full_path)
end
@@ -48,9 +48,10 @@
end
def populate!
session.api_call(:get, "profile_item", self.full_path) do |response|
populate_from_hash!(response)
+ self
end
@lazy_loaded = true
end
end
\ No newline at end of file