Class: FbGraph2::Insight
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(id, attributes = {}) ⇒ Insight
constructor
A new instance of Insight.
Methods inherited from Node
#authenticate, #destroy, #edge, #edges, #fetch, #update
Methods included from AttributeAssigner
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 |