Exception: BitlyError
- Inherits:
-
StandardError
- Object
- StandardError
- BitlyError
- Defined in:
- lib/bitly/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(msg, code) ⇒ BitlyError
constructor
A new instance of BitlyError.
Constructor Details
#initialize(msg, code) ⇒ BitlyError
Returns a new instance of BitlyError.
141 142 143 144 |
# File 'lib/bitly/client.rb', line 141 def initialize(msg, code) @code = code super("#{msg} - '#{code}'") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
139 140 141 |
# File 'lib/bitly/client.rb', line 139 def code @code end |