Module: FacebookAds::Shortcuts

Included in:
FacebookAds
Defined in:
lib/facebook_ads/helpers/shortcuts.rb

Instance Method Summary collapse

Instance Method Details

#ad_account(act_id) ⇒ Object



25
26
27
28
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 25

def (act_id)
  act_id = 'act_' + act_id unless id =~ /^act_/
  AdAccount.get(act_id)
end

#business(biz_id) ⇒ Object



30
31
32
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 30

def business(biz_id)
  Business.get(biz_id)
end

#meObject



21
22
23
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 21

def me
  User.get('me')
end