Class: Angelo::RequestError
- Inherits:
-
Reel::RequestError
- Object
- Reel::RequestError
- Angelo::RequestError
- Defined in:
- lib/angelo.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(msg = nil, type = nil) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil, type = nil) ⇒ RequestError
113 114 115 116 117 118 119 120 121 |
# File 'lib/angelo.rb', line 113 def initialize msg = nil, type = nil case msg when Hash @msg_hash = msg else super(msg) end self.type = type if type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
110 111 112 |
# File 'lib/angelo.rb', line 110 def type @type end |
Instance Method Details
#message ⇒ Object
127 128 129 |
# File 'lib/angelo.rb', line 127 def @msg_hash || super end |