Class: Appboy::REST::EmailStatus
- Defined in:
- lib/appboy/rest/email_status.rb
Instance Attribute Summary collapse
-
#app_group_id ⇒ Object
readonly
Returns the value of attribute app_group_id.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(app_group_id, email:, status:) ⇒ EmailStatus
constructor
A new instance of EmailStatus.
- #perform ⇒ Object
Constructor Details
#initialize(app_group_id, email:, status:) ⇒ EmailStatus
Returns a new instance of EmailStatus.
6 7 8 9 10 |
# File 'lib/appboy/rest/email_status.rb', line 6 def initialize(app_group_id, email:, status:) @app_group_id = app_group_id @email = email @status = status end |
Instance Attribute Details
#app_group_id ⇒ Object (readonly)
Returns the value of attribute app_group_id.
4 5 6 |
# File 'lib/appboy/rest/email_status.rb', line 4 def app_group_id @app_group_id end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/appboy/rest/email_status.rb', line 4 def email @email end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/appboy/rest/email_status.rb', line 4 def status @status end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/appboy/rest/email_status.rb', line 12 def perform http.post '/email/status', { app_group_id: app_group_id, email: email, subscription_state: status } end |