Exception: Zipmark::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Zipmark::Error
- Defined in:
- lib/zipmark/error.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(error) ⇒ Error
constructor
A new instance of Error.
- #not_found? ⇒ Boolean
Constructor Details
#initialize(error) ⇒ Error
Returns a new instance of Error.
5 6 7 8 |
# File 'lib/zipmark/error.rb', line 5 def initialize(error) self.status = error.delete(:status) super(error) end |
Instance Attribute Details
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/zipmark/error.rb', line 3 def status @status end |
Instance Method Details
#not_found? ⇒ Boolean
10 11 12 |
# File 'lib/zipmark/error.rb', line 10 def not_found? status == 404 end |