lib/garb/management/profile.rb in garb-0.8.5 vs lib/garb/management/profile.rb in garb-0.9.0

- old
+ new

@@ -20,15 +20,13 @@ all(web_property.session, web_property.path+'/profiles') end def self.new_from_entry(entry, session) profile = new - profile.session = session profile.path = Garb.parse_link(entry, "self").gsub(Feed::BASE_URL, '') profile.properties = Garb.parse_properties(entry) - profile end def properties=(properties) self.id = properties['profile_id'] @@ -36,10 +34,11 @@ self.title = properties['profile_name'] self.account_id = properties['account_id'] self.web_property_id = properties['web_property_id'] end - # def goals - # end + def goals + Goal.for_profile(self) + end end end end