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, req) ⇒ BitlyError

Returns a new instance of BitlyError.



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end