Exception: Bitly::V4::Error

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

Overview

Error class.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ Error

Returns a new instance of Error.



9
10
11
12
# File 'lib/bitly/v4/error.rb', line 9

def initialize(status, message)
  @status = status
  super("#{@status} - #{message}")
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/bitly/v4/error.rb', line 7

def status
  @status
end