Class: BrazeRuby::REST::EmailUnsubscribes
- Defined in:
- lib/braze_ruby/rest/email_unsubscribes.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(api_key, braze_url, **params) ⇒ EmailUnsubscribes
constructor
A new instance of EmailUnsubscribes.
- #perform ⇒ Object
Constructor Details
#initialize(api_key, braze_url, **params) ⇒ EmailUnsubscribes
Returns a new instance of EmailUnsubscribes.
6 7 8 9 10 |
# File 'lib/braze_ruby/rest/email_unsubscribes.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_unsubscribes.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_unsubscribes.rb', line 4 def params @params end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 |
# File 'lib/braze_ruby/rest/email_unsubscribes.rb', line 12 def perform http.get('/email/unsubscribes', { 'api_key': api_key, **params }) end |