Class: FbErrorMachine::ErrorBase

Inherits:
Object
  • Object
show all
Defined in:
lib/fb_error_machine/error_base.rb

Direct Known Subclasses

GraphApiError, MarketingApiError

Instance Method Summary collapse

Constructor Details

#initialize(attrs) ⇒ ErrorBase

Returns a new instance of ErrorBase.



4
5
6
7
8
# File 'lib/fb_error_machine/error_base.rb', line 4

def initialize(attrs)
  @error_code = attrs[:error_code]
  @description = attrs[:description]
  @instructions = attrs[:instructions]
end