Class: TingYun::Agent::TransactionSampleBuilder::PlaceholderNode
- Inherits:
-
Object
- Object
- TingYun::Agent::TransactionSampleBuilder::PlaceholderNode
- Defined in:
- lib/ting_yun/agent/transaction/transaction_sample_builder.rb
Instance Attribute Summary collapse
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#parent_node ⇒ Object
readonly
Returns the value of attribute parent_node.
Instance Method Summary collapse
-
#[](key) ⇒ Object
No-op - some clients expect to be able to use these to read/write params on TT nodes.
- #[]=(key, value) ⇒ Object
-
#initialize(parent_node) ⇒ PlaceholderNode
constructor
A new instance of PlaceholderNode.
-
#params ⇒ Object
Stubbed out in case clients try to touch params directly.
- #params= ⇒ Object
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
#depth ⇒ Object
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_node ⇒ Object (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 |
#params ⇒ Object
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 |