Exception: BitlyError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bitly/client.rb

Direct Known Subclasses

BitlyTimeout

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ 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

#codeObject (readonly)

Returns the value of attribute code


139
140
141
# File 'lib/bitly/client.rb', line 139

def code
  @code
end