Class: TotalVoice::Route
- Inherits:
-
Object
- Object
- TotalVoice::Route
- Defined in:
- lib/route.rb
Instance Method Summary collapse
-
#build ⇒ Object
Monta a URL de acordo com os parĂ¢metros.
-
#initialize(paths) ⇒ Route
constructor
-
Args : -
paths
-> Array com valores para montar a rota.
-
Constructor Details
#initialize(paths) ⇒ Route
-
Args :
-
paths
-> Array com valores para montar a rota
-
7 8 9 |
# File 'lib/route.rb', line 7 def initialize(paths) @paths = paths end |
Instance Method Details
#build ⇒ Object
Monta a URL de acordo com os parĂ¢metros
14 15 16 |
# File 'lib/route.rb', line 14 def build() @paths.join("/") end |