Class: TYCiCore::TYPodNode

Inherits:
Object
  • Object
show all
Defined in:
lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTYPodNode

Returns a new instance of TYPodNode.



6
7
8
9
10
11
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 6

def initialize
	@node_dep = 0
	@parent = ''
	@nodes = Hash.new
	@pod_item = nil
end

Instance Attribute Details

#node_depObject

Returns the value of attribute node_dep.



4
5
6
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4

def node_dep
  @node_dep
end

#nodesObject

Returns the value of attribute nodes.



4
5
6
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4

def nodes
  @nodes
end

#parentObject

Returns the value of attribute parent.



4
5
6
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4

def parent
  @parent
end

#pod_itemObject

Returns the value of attribute pod_item.



4
5
6
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 4

def pod_item
  @pod_item
end

Instance Method Details

#add_pod_item(item) ⇒ Object



18
19
20
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 18

def add_pod_item(item)
	@pod_item = item if item
end

#join_node(node) ⇒ Object



13
14
15
16
# File 'lib/tuya/ci/core/dependencies/node/podfile_lock_node.rb', line 13

def join_node(node)
	node.parent = @pod_item.name
	nodes[node.pod_item.name] = node
end