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.



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

#idObject

Returns the value of attribute id.



184
185
186
# File 'lib/oflow/graffle.rb', line 184

def id
  @id
end