Class: Pakyow::Reflection::Exposure Private

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#bindingObject (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

#childrenObject (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

#datasetObject (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

#nodeObject (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

#parentObject (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

#scopeObject (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

#cleanupObject

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