Class: TingYun::Agent::TransactionSampleBuilder::PlaceholderNode

Inherits:
Object
  • Object
show all
Defined in:
lib/ting_yun/agent/transaction/transaction_sample_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parent_node) ⇒ PlaceholderNode

Returns a new instance of PlaceholderNode.



14
15
16
17
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 14

def initialize(parent_node)
  @parent_node = parent_node
  @depth = 1
end

Instance Attribute Details

#depthObject

Returns the value of attribute depth.



12
13
14
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 12

def depth
  @depth
end

#parent_nodeObject (readonly)

Returns the value of attribute parent_node.



11
12
13
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 11

def parent_node
  @parent_node
end

Instance Method Details

#[](key) ⇒ Object

No-op - some clients expect to be able to use these to read/write params on TT nodes.



21
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 21

def [](key); end

#[]=(key, value) ⇒ Object



22
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 22

def []=(key, value); end

#paramsObject

Stubbed out in case clients try to touch params directly.



25
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 25

def params; {}; end

#params=Object



26
# File 'lib/ting_yun/agent/transaction/transaction_sample_builder.rb', line 26

def params=; end