Class: QuestionproRails::UnsubscribedEmail
- Inherits:
-
Object
- Object
- QuestionproRails::UnsubscribedEmail
- Defined in:
- lib/questionpro_rails/unsubscribed_email.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#unsubscribed_time ⇒ Object
readonly
Returns the value of attribute unsubscribed_time.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ UnsubscribedEmail
constructor
A new instance of UnsubscribedEmail.
Constructor Details
#initialize(attributes) ⇒ UnsubscribedEmail
Returns a new instance of UnsubscribedEmail.
6 7 8 9 10 |
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 6 def initialize (attributes) @id = attributes['id'] @email = attributes['emailAddress'] @unsubscribed_time = attributes['unsubscribedTime'] end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 4 def email @email end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 4 def id @id end |
#unsubscribed_time ⇒ Object (readonly)
Returns the value of attribute unsubscribed_time.
4 5 6 |
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 4 def unsubscribed_time @unsubscribed_time end |