Class: Pakyow::Reflection::Exposure Private
- Inherits:
-
Object
- Object
- Pakyow::Reflection::Exposure
- Defined in:
- lib/pakyow/reflection/endpoint.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #binding ⇒ Object readonly private
- #children ⇒ Object readonly private
- #dataset ⇒ Object readonly private
- #node ⇒ Object readonly private
- #parent ⇒ Object readonly private
- #scope ⇒ Object readonly private
Instance Method Summary collapse
- #cleanup ⇒ Object private
-
#initialize(scope:, node:, binding:, dataset: nil, parent: nil) ⇒ Exposure
constructor
private
A new instance of Exposure.
Constructor Details
#initialize(scope:, node:, binding:, dataset: nil, parent: nil) ⇒ Exposure
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Exposure.
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pakyow/reflection/endpoint.rb', line 9 def initialize(scope:, node:, binding:, dataset: nil, parent: nil) @scope = scope @node = node @binding = binding @dataset = parse_dataset(dataset) if dataset @parent = parent @children = [] if parent parent.children << self end end |
Instance Attribute Details
#binding ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def binding @binding end |
#children ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def children @children end |
#dataset ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def dataset @dataset end |
#node ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def node @node end |
#parent ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def parent @parent end |
#scope ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/pakyow/reflection/endpoint.rb', line 7 def scope @scope end |
Instance Method Details
#cleanup ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
22 23 24 |
# File 'lib/pakyow/reflection/endpoint.rb', line 22 def cleanup @node = nil end |