Class: FbGraph::Action

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Comparison

#==

Constructor Details

#initialize(attributes = {}) ⇒ Action

Returns a new instance of Action.



7
8
9
10
# File 'lib/fb_graph/action.rb', line 7

def initialize(attributes = {})
  @name = attributes[:name]
  @link = attributes[:link]
end

Instance Attribute Details

Returns the value of attribute link.



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

def link
  @link
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end