Class: Feed2Email::RedirectionChecker
- Inherits:
-
Object
- Object
- Feed2Email::RedirectionChecker
- Defined in:
- lib/feed2email/redirection_checker.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(uri) ⇒ RedirectionChecker
constructor
A new instance of RedirectionChecker.
- #permanently_redirected? ⇒ Boolean
Constructor Details
#initialize(uri) ⇒ RedirectionChecker
Returns a new instance of RedirectionChecker.
8 9 10 11 |
# File 'lib/feed2email/redirection_checker.rb', line 8 def initialize(uri) @uri = uri check end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/feed2email/redirection_checker.rb', line 6 def location @location end |
Instance Method Details
#permanently_redirected? ⇒ Boolean
13 14 15 |
# File 'lib/feed2email/redirection_checker.rb', line 13 def permanently_redirected? redirected? && code == 301 end |