Class: Urbanairship::Devices::EmailTags

Inherits:
ChannelTags show all
Includes:
Common
Defined in:
lib/urbanairship/devices/email.rb

Constant Summary

Constants included from Common

Common::CONTENT_TYPE

Instance Attribute Summary

Attributes inherited from ChannelTags

#add_group, #audience, #client, #remove_group, #set_group

Instance Method Summary collapse

Methods included from Common

#apid_path, #channel_path, #compact_helper, #create_and_send_path, #custom_events_path, #device_token_path, #experiments_path, #lists_path, #named_users_path, #open_channel_path, #pipelines_path, #push_path, #reports_path, #required, #schedules_path, #segments_path, #tag_lists_path, #try_helper

Methods inherited from ChannelTags

#add, #remove, #send_request, #set

Methods included from Loggable

create_logger, logger, #logger

Constructor Details

#initialize(client: required('client')) ⇒ EmailTags

Returns a new instance of EmailTags.



110
111
112
113
# File 'lib/urbanairship/devices/email.rb', line 110

def initialize(client: required('client'))
  super(client: client)
  @path = channel_path('email/tags')
end

Instance Method Details

#set_audience(email_address: required('email_address')) ⇒ Object



115
116
117
# File 'lib/urbanairship/devices/email.rb', line 115

def set_audience(email_address: required('email_address'))
  @audience['email_address'] = email_address
end