Class: Querly::Script
- Inherits:
-
Object
- Object
- Querly::Script
- Defined in:
- lib/querly/script.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, node:) ⇒ Script
constructor
A new instance of Script.
- #root_pair ⇒ Object
Constructor Details
#initialize(path:, node:) ⇒ Script
Returns a new instance of Script.
6 7 8 9 |
# File 'lib/querly/script.rb', line 6 def initialize(path:, node:) @path = path @node = node end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/querly/script.rb', line 4 def node @node end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/querly/script.rb', line 3 def path @path end |