Exception: Bobot::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bobot/exceptions.rb

Overview

Base Facebook Messenger exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, description) ⇒ NetworkError

Returns a new instance of NetworkError.



54
55
56
57
# File 'lib/bobot/exceptions.rb', line 54

def initialize(response, description)
  @response = response
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



52
53
54
# File 'lib/bobot/exceptions.rb', line 52

def description
  @description
end

#responseObject (readonly)

Returns the value of attribute response.



51
52
53
# File 'lib/bobot/exceptions.rb', line 51

def response
  @response
end

Instance Method Details

#messageObject



59
60
61
# File 'lib/bobot/exceptions.rb', line 59

def message
  description
end

#to_sObject



63
64
65
# File 'lib/bobot/exceptions.rb', line 63

def to_s
  message
end