Class: QuestionproRails::EmailListStatistic
- Inherits:
-
Object
- Object
- QuestionproRails::EmailListStatistic
- Defined in:
- lib/questionpro_rails/email_list_statistic.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#bounced ⇒ Object
readonly
Returns the value of attribute bounced.
-
#pendin_verification ⇒ Object
readonly
Returns the value of attribute pendin_verification.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#unsubscribed ⇒ Object
readonly
Returns the value of attribute unsubscribed.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ EmailListStatistic
constructor
A new instance of EmailListStatistic.
Constructor Details
#initialize(attributes) ⇒ EmailListStatistic
Returns a new instance of EmailListStatistic.
7 8 9 10 11 12 13 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 7 def initialize (attributes) @unsubscribed = attributes['unsubscribed'] @total = attributes['total'] @active = attributes['active'] @pendin_verification = attributes['pendinVerification'] @bounced = attributes['bounced'] end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
4 5 6 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 4 def active @active end |
#bounced ⇒ Object (readonly)
Returns the value of attribute bounced.
4 5 6 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 4 def bounced @bounced end |
#pendin_verification ⇒ Object (readonly)
Returns the value of attribute pendin_verification.
4 5 6 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 4 def pendin_verification @pendin_verification end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
4 5 6 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 4 def total @total end |
#unsubscribed ⇒ Object (readonly)
Returns the value of attribute unsubscribed.
4 5 6 |
# File 'lib/questionpro_rails/email_list_statistic.rb', line 4 def unsubscribed @unsubscribed end |