Class: Appboy::REST::DeleteUsers

Inherits:
Base
  • Object
show all
Defined in:
lib/appboy/rest/delete_users.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_group_id, external_ids: [], appboy_ids: []) ⇒ DeleteUsers

Returns a new instance of DeleteUsers.



6
7
8
9
10
# File 'lib/appboy/rest/delete_users.rb', line 6

def initialize(app_group_id, external_ids: [], appboy_ids: [])
  @app_group_id = app_group_id
  @external_ids = external_ids
  @appboy_ids   = appboy_ids
end

Instance Attribute Details

#app_group_idObject (readonly)

Returns the value of attribute app_group_id.



4
5
6
# File 'lib/appboy/rest/delete_users.rb', line 4

def app_group_id
  @app_group_id
end

#appboy_idsObject (readonly)

Returns the value of attribute appboy_ids.



4
5
6
# File 'lib/appboy/rest/delete_users.rb', line 4

def appboy_ids
  @appboy_ids
end

#external_idsObject (readonly)

Returns the value of attribute external_ids.



4
5
6
# File 'lib/appboy/rest/delete_users.rb', line 4

def external_ids
  @external_ids
end

Instance Method Details

#performObject



12
13
14
15
16
17
18
# File 'lib/appboy/rest/delete_users.rb', line 12

def perform
  http.post '/users/delete', {
    app_group_id:   app_group_id,
    external_ids:   external_ids,
    appboy_ids:     appboy_ids
  }
end