Class: Hurley::Url::Empty

Inherits:
Hurley::Url show all
Defined in:
lib/hurley/url.rb

Instance Attribute Summary

Attributes inherited from Hurley::Url

#password, #user

Instance Method Summary collapse

Methods inherited from Hurley::Url

#basic_auth, escape_path, escape_paths, #inspect, join, #join, parse, #path, #path=, #port, #query, #query_class, #query_class=, #raw_query, #raw_query=, #request_uri, #to_s

Constructor Details

#initializeEmpty

Returns a new instance of Empty.



187
188
189
190
# File 'lib/hurley/url.rb', line 187

def initialize
  @parsed = @@parser.call(EMPTY)
  @query = Query.parse(EMPTY)
end

Instance Method Details

#relation_with(url) ⇒ Object



192
193
194
# File 'lib/hurley/url.rb', line 192

def relation_with(url)
  :diff
end