Class: Ultron::URL
- Inherits:
-
Object
- Object
- Ultron::URL
- Defined in:
- lib/ultron/url.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(path, query) ⇒ URL
constructor
A new instance of URL.
- #to_s ⇒ Object
Constructor Details
#initialize(path, query) ⇒ URL
Returns a new instance of URL.
5 6 7 8 |
# File 'lib/ultron/url.rb', line 5 def initialize path, query @path = path @query = query end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/ultron/url.rb', line 3 def path @path end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
3 4 5 |
# File 'lib/ultron/url.rb', line 3 def query @query end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/ultron/url.rb', line 14 def == other other.path == @path && other.query == @query end |