class Ultron::URL
Attributes
path[R]
query[R]
Public Class Methods
new(path, query)
click to toggle source
# File lib/ultron/url.rb, line 5 def initialize path, query @path = path @query = query end
Public Instance Methods
==(other)
click to toggle source
# File lib/ultron/url.rb, line 14 def == other other.path == @path && other.query == @query end
to_s()
click to toggle source
# File lib/ultron/url.rb, line 10 def to_s "%s%s?%s%s" % [Ultron::Config.instance.root_url, @path, @query, Ultron.auth(ENV['PRIVATE_KEY'], ENV['PUBLIC_KEY'])] end