class Garb::Management::Goal
Attributes
session[R]
Public Class Methods
all(session = Session, path = '/accounts/~all/webproperties/~all/profiles/~all/goals')
click to toggle source
# File lib/garb/management/goal.rb, line 12 def self.all(session = Session, path = '/accounts/~all/webproperties/~all/profiles/~all/goals') feed = Feed.new(session, path) feed.entries.map { |entry| new(entry, session) } end
for_account(account)
click to toggle source
# File lib/garb/management/goal.rb, line 17 def self.for_account(account) all(account.session, account.path + '/webproperties/~all/profiles/~all/goals') end
for_profile(profile)
click to toggle source
# File lib/garb/management/goal.rb, line 25 def self.for_profile(profile) all(profile.session, profile.path + '/goals') end
for_web_property(web_property)
click to toggle source
# File lib/garb/management/goal.rb, line 21 def self.for_web_property(web_property) all(web_property.session, web_property.path + '/profiles/~all/goals') end
new(entry, session)
click to toggle source
# File lib/garb/management/goal.rb, line 29 def initialize(entry, session) @entry = entry @session = session end
Public Instance Methods
destination()
click to toggle source
# File lib/garb/management/goal.rb, line 34 def destination @destination ||= Destination.new(@entry['urlDestinationDetails']) end