Class: Syfyfancam::URL
- Inherits:
-
Object
- Object
- Syfyfancam::URL
- Defined in:
- lib/syfyfancam/url.rb
Instance Attribute Summary collapse
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #images ⇒ Object
-
#initialize(url) ⇒ URL
constructor
A new instance of URL.
- #personal_hash ⇒ Object
Constructor Details
Instance Attribute Details
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
7 8 9 |
# File 'lib/syfyfancam/url.rb', line 7 def uri @uri end |
Instance Method Details
#images ⇒ Object
16 17 18 |
# File 'lib/syfyfancam/url.rb', line 16 def images build_urls.map { |url| URI.parse(url).to_s } end |
#personal_hash ⇒ Object
20 21 22 |
# File 'lib/syfyfancam/url.rb', line 20 def personal_hash uri.to_s.split('/').last end |