Exception: BitlyError
- Inherits:
-
StandardError
- Object
- StandardError
- BitlyError
- Defined in:
- lib/bitly/client.rb,
lib/bitly/v3/bitly.rb
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.
129 130 131 132 |
# File 'lib/bitly/client.rb', line 129 def initialize(msg, code) @code = code super("#{msg} - '#{code}'") end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
127 128 129 |
# File 'lib/bitly/client.rb', line 127 def code @code end |