Class: Urbanairship::Devices::NamedUserTags
- Inherits:
-
ChannelTags
- Object
- ChannelTags
- Urbanairship::Devices::NamedUserTags
- Includes:
- Common
- Defined in:
- lib/urbanairship/devices/named_user.rb
Constant Summary
Constants included from Common
Instance Attribute Summary
Attributes inherited from ChannelTags
#add_group, #audience, #client, #remove_group, #set_group
Instance Method Summary collapse
-
#initialize(client: required('client')) ⇒ NamedUserTags
constructor
A new instance of NamedUserTags.
- #set_audience(user_ids: required('user_ids')) ⇒ Object
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')) ⇒ NamedUserTags
Returns a new instance of NamedUserTags.
76 77 78 79 |
# File 'lib/urbanairship/devices/named_user.rb', line 76 def initialize(client: required('client')) super(client: client) @path = named_users_path('tags/') end |
Instance Method Details
#set_audience(user_ids: required('user_ids')) ⇒ Object
81 82 83 |
# File 'lib/urbanairship/devices/named_user.rb', line 81 def set_audience(user_ids: required('user_ids')) @audience['named_user_id'] = user_ids end |