Class: FbGraph::Insight
Instance Attribute Summary (collapse)
-
- (Object) description
Returns the value of attribute description.
-
- (Object) name
Returns the value of attribute name.
-
- (Object) period
Returns the value of attribute period.
-
- (Object) values
Returns the value of attribute values.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary (collapse)
-
- (Insight) initialize(identifier, attributes = {})
constructor
A new instance of Insight.
Methods inherited from Node
#connection, #destroy, fetch, #fetch, #update
Methods included from Comparison
Constructor Details
- (Insight) initialize(identifier, attributes = {})
A new instance of Insight
5 6 7 8 9 10 11 |
# File 'lib/fb_graph/insight.rb', line 5 def initialize(identifier, attributes = {}) super @name = attributes[:name] @period = attributes[:period] @values = attributes[:values].collect(&:with_indifferent_access) @description = attributes[:description] end |
Instance Attribute Details
- (Object) description
Returns the value of attribute description
3 4 5 |
# File 'lib/fb_graph/insight.rb', line 3 def description @description end |
- (Object) name
Returns the value of attribute name
3 4 5 |
# File 'lib/fb_graph/insight.rb', line 3 def name @name end |
- (Object) period
Returns the value of attribute period
3 4 5 |
# File 'lib/fb_graph/insight.rb', line 3 def period @period end |
- (Object) values
Returns the value of attribute values
3 4 5 |
# File 'lib/fb_graph/insight.rb', line 3 def values @values end |