class Garb::Management::Profile

Attributes

session[R]

Public Class Methods

all(session = Session, path = '/accounts/~all/webproperties/~all/profiles') click to toggle source
# File lib/garb/management/profile.rb, line 12
def self.all(session = Session, path = '/accounts/~all/webproperties/~all/profiles')
  feed = Feed.new(session, path)
  feed.entries.map { |entry| new(entry, session) }
end
for_account(account) click to toggle source
# File lib/garb/management/profile.rb, line 17
def self.for_account(account)
  all(account.session, account.path + '/webproperties/~all/profiles')
end
for_web_property(web_property) click to toggle source
# File lib/garb/management/profile.rb, line 21
def self.for_web_property(web_property)
  all(web_property.session, web_property.path + '/profiles')
end
new(entry, session) click to toggle source
# File lib/garb/management/profile.rb, line 25
def initialize(entry, session)
  @entry = entry
  @session = session
end

Public Instance Methods

goals() click to toggle source
# File lib/garb/management/profile.rb, line 30
def goals
  Goal.for_profile self
end