Exception: Flickr::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Flickr::RequestError
- Defined in:
- lib/simple-flickr.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, message) ⇒ RequestError
constructor
A new instance of RequestError.
- #to_s ⇒ Object
Constructor Details
#initialize(status, message) ⇒ RequestError
35 36 37 |
# File 'lib/simple-flickr.rb', line 35 def initialize( status, ) @status, = status.to_i, end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
34 35 36 |
# File 'lib/simple-flickr.rb', line 34 def end |
#status ⇒ Object
Returns the value of attribute status.
34 35 36 |
# File 'lib/simple-flickr.rb', line 34 def status @status end |
Instance Method Details
#to_s ⇒ Object
39 40 41 |
# File 'lib/simple-flickr.rb', line 39 def to_s "#{message} (#{status})" end |