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



13
14
15
16
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 13

def (act_id)
  act_id = 'act_' + act_id.to_s unless act_id.is_a?(String) && act_id =~ /^act_/
  AdAccount.get(act_id)
end

#business(biz_id) ⇒ Object



18
19
20
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 18

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

#meObject



9
10
11
# File 'lib/facebook_ads/helpers/shortcuts.rb', line 9

def me
  User.get('me')
end