Sha256: d0b9e5be24db97ab0dc13aefcb491e91938f33b21c4ef7d07c70f92a7a35a2e0
Contents?: true
Size: 469 Bytes
Versions: 6
Compression:
Stored size: 469 Bytes
Contents
module BrazeRuby module REST class EmailStatus < Base attr_reader :api_key, :email, :status def initialize(api_key, braze_url, email: nil, status: nil) @api_key = api_key @email = email @status = status super braze_url end def perform http.post '/email/status', { 'api_key': api_key, 'email': email, 'subscription_state': status } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems