Module: FbGraph2::Edge::AppInsights

Included in:
App
Defined in:
lib/fb_graph2/edge/app_insights.rb

Instance Method Summary collapse

Instance Method Details

#app_insights(metric, params = {}) ⇒ Object



4
5
6
7
8
9
# File 'lib/fb_graph2/edge/app_insights.rb', line 4

def app_insights(metric, params = {})
  insights = self.edge :app_insights, params, { edge_scope: metric }
  insights.collect! do |insight|
    FbGraph2::Struct::AppInsight.new insight
  end
end