Class: OFlow::Graffle::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/oflow/graffle.rb

Direct Known Subclasses

LineInfo, TaskInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nodes) ⇒ Element

Returns a new instance of Element.



190
191
192
193
# File 'lib/oflow/graffle.rb', line 190

def initialize(nodes)
  return if nodes.nil?
  @id = Graffle.get_key_value(nodes, 'ID')
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



188
189
190
# File 'lib/oflow/graffle.rb', line 188

def id
  @id
end