Exception: BitlyError
- Inherits:
-
StandardError
- Object
- StandardError
- BitlyError
- Defined in:
- lib/bitly/client.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code, req) ⇒ BitlyError
constructor
A new instance of BitlyError.
Constructor Details
#initialize(msg, code, req) ⇒ BitlyError
114 115 116 117 |
# File 'lib/bitly/client.rb', line 114 def initialize(msg, code, req) @code = code super("'#{req}' - #{msg}") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
112 113 114 |
# File 'lib/bitly/client.rb', line 112 def code @code end |