Module: Nexmo::OAS::Renderer::Helpers::URL
- Defined in:
- lib/nexmo/oas/renderer/helpers/url.rb
Instance Method Summary collapse
Instance Method Details
#canonical_path ⇒ Object
12 13 14 |
# File 'lib/nexmo/oas/renderer/helpers/url.rb', line 12 def canonical_path request.path.chomp("/#{@code_language}") end |
#parameter_values(enum) ⇒ Object
8 9 10 |
# File 'lib/nexmo/oas/renderer/helpers/url.rb', line 8 def parameter_values(enum) enum.map { |value| "<code>#{value}</code>" }.to_sentence(last_word_connector: ' or ', two_words_connector: ' or ') end |