Class: GSGraph::Action
- Inherits:
-
Object
- Object
- GSGraph::Action
- Includes:
- Comparison
- Defined in:
- lib/gs_graph/action.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Action
constructor
A new instance of Action.
Methods included from Comparison
Constructor Details
#initialize(attributes = {}) ⇒ Action
Returns a new instance of Action.
7 8 9 10 |
# File 'lib/gs_graph/action.rb', line 7 def initialize(attributes = {}) @name = attributes[:name] @link = attributes[:link] end |
Instance Attribute Details
#link ⇒ Object
Returns the value of attribute link.
5 6 7 |
# File 'lib/gs_graph/action.rb', line 5 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/gs_graph/action.rb', line 5 def name @name end |