Class: Spikard::Introspection::RouteSpec

Inherits:
Object
  • Object
show all
Defined in:
lib/spikard/introspection.rb

Overview

Introspected, per-route metadata derived from a handler at registration time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler, bindings, body_param_name, body_type) ⇒ RouteSpec

Returns a new instance of RouteSpec.



33
34
35
36
37
38
# File 'lib/spikard/introspection.rb', line 33

def initialize(handler, bindings, body_param_name, body_type)
  @handler = handler
  @bindings = bindings
  @body_param_name = body_param_name
  @body_type = body_type
end

Instance Attribute Details

#bindingsObject (readonly)

Returns the value of attribute bindings.



31
32
33
# File 'lib/spikard/introspection.rb', line 31

def bindings
  @bindings
end

#body_param_nameObject (readonly)

Returns the value of attribute body_param_name.



31
32
33
# File 'lib/spikard/introspection.rb', line 31

def body_param_name
  @body_param_name
end

#body_typeObject (readonly)

Returns the value of attribute body_type.



31
32
33
# File 'lib/spikard/introspection.rb', line 31

def body_type
  @body_type
end

#handlerObject (readonly)

Returns the value of attribute handler.



31
32
33
# File 'lib/spikard/introspection.rb', line 31

def handler
  @handler
end