Exception: FacebookAds::AdException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/facebook_ads/ad_exception.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, title:, message:) ⇒ AdException

Returns a new instance of AdException.



5
6
7
8
9
# File 'lib/facebook_ads/ad_exception.rb', line 5

def initialize(code:, title:, message:)
  @code = code
  @title = title
  @message = message
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/facebook_ads/ad_exception.rb', line 3

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/facebook_ads/ad_exception.rb', line 3

def message
  @message
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'lib/facebook_ads/ad_exception.rb', line 3

def title
  @title
end