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



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

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



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

def code
  @code
end