Exception: MessageQuickly::Api::GraphMethodException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/message_quickly/api/graph_method_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ GraphMethodException

Returns a new instance of GraphMethodException.



7
8
9
10
11
12
# File 'lib/message_quickly/api/graph_method_exception.rb', line 7

def initialize(params = {})
  @message = params['message']
  @code = params['code']
  @fbtrace_id = params['fbtrace_id']
  super(message)
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/message_quickly/api/graph_method_exception.rb', line 5

def code
  @code
end

#fbtrace_idObject (readonly)

Returns the value of attribute fbtrace_id.



5
6
7
# File 'lib/message_quickly/api/graph_method_exception.rb', line 5

def fbtrace_id
  @fbtrace_id
end

Instance Method Details

#messageObject



14
15
16
# File 'lib/message_quickly/api/graph_method_exception.rb', line 14

def message
  @message
end