Class: RapidRunty::Router::Route

Inherits:
Object
  • Object
show all
Defined in:
lib/rapid_runty/router/route.rb

Overview

Defines a single user defined route.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(verb, path, options) ⇒ Route

Returns a new instance of Route.



8
9
10
11
12
13
# File 'lib/rapid_runty/router/route.rb', line 8

def initialize(verb, path, options)
  self.verb = verb
  self.path = path
  self.options = options
  self.placeholders = {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/rapid_runty/router/route.rb', line 6

def options
  @options
end

#pathObject

Returns the value of attribute path.



6
7
8
# File 'lib/rapid_runty/router/route.rb', line 6

def path
  @path
end

#placeholdersObject

Returns the value of attribute placeholders.



6
7
8
# File 'lib/rapid_runty/router/route.rb', line 6

def placeholders
  @placeholders
end

#verbObject

Returns the value of attribute verb.



6
7
8
# File 'lib/rapid_runty/router/route.rb', line 6

def verb
  @verb
end