Class: Appboy::REST::DeleteUsers
- Defined in:
- lib/appboy/rest/delete_users.rb
Instance Attribute Summary collapse
-
#app_group_id ⇒ Object
readonly
Returns the value of attribute app_group_id.
-
#appboy_ids ⇒ Object
readonly
Returns the value of attribute appboy_ids.
-
#external_ids ⇒ Object
readonly
Returns the value of attribute external_ids.
Instance Method Summary collapse
-
#initialize(app_group_id, external_ids: [], appboy_ids: []) ⇒ DeleteUsers
constructor
A new instance of DeleteUsers.
- #perform ⇒ Object
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_id ⇒ Object (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_ids ⇒ Object (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_ids ⇒ Object (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
#perform ⇒ Object
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 |