Class: Exacto::Unsubscription
- Defined in:
- lib/exacto_subscriber/unsubscription.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#email_address ⇒ Object
readonly
Returns the value of attribute email_address.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#unsubscribed_at ⇒ Object
readonly
Returns the value of attribute unsubscribed_at.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Unsubscription
constructor
A new instance of Unsubscription.
- #response_system_name ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Unsubscription
Returns a new instance of Unsubscription.
4 5 6 7 8 9 |
# File 'lib/exacto_subscriber/unsubscription.rb', line 4 def initialize( = {}) @email_address = [:email_address] if [:unsubscribed_at] @unsubscribed_at = DateTime.parse([:unsubscribed_at]) end end |
Instance Attribute Details
#email_address ⇒ Object (readonly)
Returns the value of attribute email_address.
3 4 5 |
# File 'lib/exacto_subscriber/unsubscription.rb', line 3 def email_address @email_address end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/exacto_subscriber/unsubscription.rb', line 3 def status @status end |
#unsubscribed_at ⇒ Object (readonly)
Returns the value of attribute unsubscribed_at.
3 4 5 |
# File 'lib/exacto_subscriber/unsubscription.rb', line 3 def unsubscribed_at @unsubscribed_at end |
Instance Method Details
#response_system_name ⇒ Object
11 12 13 |
# File 'lib/exacto_subscriber/unsubscription.rb', line 11 def response_system_name "subscriber" end |