Class: FbGraph2::Insight

Inherits:
Node
  • Object
show all
Defined in:
lib/fb_graph2/insight.rb

Instance Attribute Summary

Attributes inherited from Node

#access_token, #id

Instance Method Summary collapse

Methods inherited from Node

#authenticate, #destroy, #edge, #edges, #fetch, #update

Methods included from AttributeAssigner

#assign

Constructor Details

#initialize(id, attributes = {}) ⇒ Insight

Returns a new instance of Insight.



8
9
10
11
# File 'lib/fb_graph2/insight.rb', line 8

def initialize(id, attributes = {})
  super
  self.values = attributes[:values].collect(&:with_indifferent_access)
end