Method: Request::Query#to_url
- Defined in:
- lib/violet/request.rb
#to_url ⇒ Object
return the complet url
112 113 114 115 116 117 118 119 |
# File 'lib/violet/request.rb', line 112 def to_url opts = @event.to_url if opts.respond_to?(:join) then opts = opts.join('&') end base_url = if @event.streamed? then APISTREAM_URL else API_URL end "#{base_url}?" << [ "sn=#{@serial}", "token=#{@token}", opts ].join('&') end |