Class: BrazeRuby::REST::EmailHardBounces

Inherits:
Base
  • Object
show all
Defined in:
lib/braze_ruby/rest/email_hard_bounces.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, braze_url, **params) ⇒ EmailHardBounces

Returns a new instance of EmailHardBounces.



6
7
8
9
10
# File 'lib/braze_ruby/rest/email_hard_bounces.rb', line 6

def initialize(api_key, braze_url, **params)
  @api_key = api_key
  @params = params
  super braze_url
end

Instance Attribute Details

#api_key ⇒ Object (readonly)

Returns the value of attribute api_key.



4
5
6
# File 'lib/braze_ruby/rest/email_hard_bounces.rb', line 4

def api_key
  @api_key
end

#params ⇒ Object (readonly)

Returns the value of attribute params.



4
5
6
# File 'lib/braze_ruby/rest/email_hard_bounces.rb', line 4

def params
  @params
end

Instance Method Details

#perform ⇒ Object



12
13
14
15
16
17
# File 'lib/braze_ruby/rest/email_hard_bounces.rb', line 12

def perform
  http.get('/email/hard_bounces', {
    'api_key': api_key,
    **@params
  })
end