Class: Wewoo::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/wewoo/element.rb

Direct Known Subclasses

Edge, Vertex

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#graphObject (readonly)

Returns the value of attribute graph.



3
4
5
# File 'lib/wewoo/element.rb', line 3

def graph
  @graph
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/wewoo/element.rb', line 3

def id
  @id
end

#propertiesObject Also known as: props

Returns the value of attribute properties.



4
5
6
# File 'lib/wewoo/element.rb', line 4

def properties
  @properties
end

Instance Method Details

#gidObject



8
9
10
# File 'lib/wewoo/element.rb', line 8

def gid
  props.gid
end