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
4 5 6 7 8 |
# File 'lib/storify/apierror.rb', line 4 def initialize(status, , type = nil) @type = type @status = status = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
2 3 4 |
# File 'lib/storify/apierror.rb', line 2 def end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'lib/storify/apierror.rb', line 2 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'lib/storify/apierror.rb', line 2 def type @type end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/storify/apierror.rb', line 10 def to_s "#{self.status} #{self.type} #{self.message}" end |