Module: LoraRb::Base
- Included in:
- LoraClient
- Defined in:
- lib/lora-rb/help.rb,
lib/lora-rb/utility.rb
Overview
It contains generic methods
Instance Method Summary collapse
-
#merge_tags_to_url(url, tags = {}, options = {}) ⇒ Object
Show tips on usage.
Instance Method Details
#merge_tags_to_url(url, tags = {}, options = {}) ⇒ Object
Show tips on usage
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/lora-rb/utility.rb', line 7 def (url, ={}, ={}) url = url.dup puts "merge_tags_to_url: #{url}" if [:debug] == :full .each do |tag, value| puts " replace {#{tag}} with #{value}" if [:debug] == :full url.gsub!("{#{tag}}", value.to_s) end puts "merge_tags_to_url: completed #{url}" if [:debug] == :full url end |