class Pakyow::Reflection::Endpoint
@api private
Attributes
exposures[R]
options[R]
view_path[R]
Public Class Methods
new(view_path, options: {})
click to toggle source
# File lib/pakyow/reflection/endpoint.rb, line 65 def initialize(view_path, options: {}) @view_path = view_path @options = options || {} @exposures = [] end
Public Instance Methods
add_exposure(exposure)
click to toggle source
# File lib/pakyow/reflection/endpoint.rb, line 75 def add_exposure(exposure) @exposures << exposure end
cleanup()
click to toggle source
# File lib/pakyow/reflection/endpoint.rb, line 79 def cleanup @exposures.each(&:cleanup) end
type()
click to toggle source
# File lib/pakyow/reflection/endpoint.rb, line 71 def type @options[:type] || :member end