Class: FbGraph::Insight

Inherits:
Object
  • Object
show all
Includes:
Comparison
Defined in:
lib/fb_graph/insight.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Insight

Returns a new instance of Insight.



7
8
9
10
11
12
# File 'lib/fb_graph/insight.rb', line 7

def initialize(attributes = {})
  @name   = attributes[:name]
  @period = attributes[:period]
  @values = attributes[:values].collect(&:with_indifferent_access)
  @description = attributes[:description]
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



5
6
7
# File 'lib/fb_graph/insight.rb', line 5

def description
  @description
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/fb_graph/insight.rb', line 5

def name
  @name
end

#periodObject

Returns the value of attribute period.



5
6
7
# File 'lib/fb_graph/insight.rb', line 5

def period
  @period
end

#valuesObject

Returns the value of attribute values.



5
6
7
# File 'lib/fb_graph/insight.rb', line 5

def values
  @values
end