Class: Shikimori::API::URI
- Inherits:
-
Object
- Object
- Shikimori::API::URI
- Defined in:
- lib/shikimori/api/uri.rb
Overview
Helper to working with URI object
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(uri) ⇒ URI
constructor
A new instance of URI.
- #join(*path) ⇒ Object
Constructor Details
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
7 8 9 |
# File 'lib/shikimori/api/uri.rb', line 7 def url @url end |
Instance Method Details
#join(*path) ⇒ Object
13 14 15 |
# File 'lib/shikimori/api/uri.rb', line 13 def join(*path) self.class.new ::URI.join(@url, path.join('/')) end |