Exception: BitlyError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code.



127
128
129
# File 'lib/bitly/client.rb', line 127

def code
  @code
end