Class: OFlow::Graffle::Element
- Inherits:
-
Object
- Object
- OFlow::Graffle::Element
- Defined in:
- lib/oflow/graffle.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(nodes) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(nodes) ⇒ Element
Returns a new instance of Element.
186 187 188 189 |
# File 'lib/oflow/graffle.rb', line 186 def initialize(nodes) return if nodes.nil? @id = Graffle.get_key_value(nodes, 'ID') end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
184 185 186 |
# File 'lib/oflow/graffle.rb', line 184 def id @id end |