Method: FacebookTopics::ApiError#initialize
- Defined in:
- lib/facebook_topics/error.rb
#initialize(err) ⇒ ApiError
Returns a new instance of ApiError.
5 6 7 8 9 10 |
# File 'lib/facebook_topics/error.rb', line 5 def initialize(err) @code = err["code"] @type = err["type"] super("#{@type} #{err['message']} - code: #{@code}") end |