Exception: Storify::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- Storify::ApiError
- Defined in:
- lib/storify/apierror.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(status, message, type = nil) ⇒ ApiError
constructor
A new instance of ApiError.
- #to_s ⇒ Object
Constructor Details
#initialize(status, message, type = nil) ⇒ ApiError
Returns a new instance of ApiError.
5 6 7 8 9 |
# File 'lib/storify/apierror.rb', line 5 def initialize(status, , type = nil) @type = type @status = status @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/storify/apierror.rb', line 3 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/storify/apierror.rb', line 3 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/storify/apierror.rb', line 3 def type @type end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/storify/apierror.rb', line 11 def to_s "#{self.status} #{self.type} #{self.}" end |