Exception: BitlyError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, code) ⇒ BitlyError

Returns a new instance of BitlyError.



116
117
118
119
# File 'lib/bitly/client.rb', line 116

def initialize(msg, code)
  @code = code
  super("#{msg} - '#{code}'")
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



114
115
116
# File 'lib/bitly/client.rb', line 114

def code
  @code
end