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.
9 10 11 |
# File 'lib/syfyfancam/url.rb', line 9 def uri @uri end |
Instance Method Details
#images ⇒ Object
18 19 20 |
# File 'lib/syfyfancam/url.rb', line 18 def images build_urls.map { |url| URI.parse(url).to_s } end |
#personal_hash ⇒ Object
22 23 24 |
# File 'lib/syfyfancam/url.rb', line 22 def personal_hash uri.to_s.split('/').last end |