Class: Funky::GraphRootNode

Inherits:
Object
  • Object
show all
Defined in:
lib/funky/graph_root_node.rb

Direct Known Subclasses

Page, Post, Video

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ GraphRootNode

Returns a new instance of GraphRootNode.



5
6
7
# File 'lib/funky/graph_root_node.rb', line 5

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



3
4
5
# File 'lib/funky/graph_root_node.rb', line 3

def data
  @data
end

Instance Method Details

#idString

Returns the object ID.

Returns:

  • (String)

    the object ID.



10
11
12
# File 'lib/funky/graph_root_node.rb', line 10

def id
  data[:id]
end