Class: RubyRoutesTrie::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/trie/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, route, dynamic_value) ⇒ Response

Returns a new instance of Response.



6
7
8
9
10
# File 'lib/trie/response.rb', line 6

def initialize(method, route, dynamic_value)
  @dynamic_value = dynamic_value
  @route         = route
  @method        = method
end

Instance Attribute Details

#dynamic_valueObject (readonly)

Returns the value of attribute dynamic_value.



4
5
6
# File 'lib/trie/response.rb', line 4

def dynamic_value
  @dynamic_value
end

#methodObject (readonly)

Returns the value of attribute method.



4
5
6
# File 'lib/trie/response.rb', line 4

def method
  @method
end

#routeObject (readonly)

Returns the value of attribute route.



4
5
6
# File 'lib/trie/response.rb', line 4

def route
  @route
end