Module: GSGraph::Connections::Insights
- Included in:
- Application, Domain, Page, Post
- Defined in:
- lib/gs_graph/connections/insights.rb
Instance Method Summary collapse
Instance Method Details
#insights(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/gs_graph/connections/insights.rb', line 4 def insights( = {}) [:access_token] ||= self.access_token insights = self.connection :insights, .merge( :connection_scope => connection_scope() ) insights.map! do |insight| Insight.new insight[:id], insight.merge( :access_token => [:access_token] ) end end |