Class: TotalVoice::Route

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

Instance Method Summary collapse

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

#buildObject

Monta a URL de acordo com os parĂ¢metros



14
15
16
# File 'lib/route.rb', line 14

def build()
  @paths.join("/")
end