Class: Exacto::Unsubscription

Inherits:
Base
  • Object
show all
Defined in:
lib/exacto_subscriber/unsubscription.rb

Direct Known Subclasses

ListUnsubscription, MasterListUnsubscription

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @email_address = options[:email_address]
  if options[:unsubscribed_at]
    @unsubscribed_at = DateTime.parse(options[:unsubscribed_at])
  end
end

Instance Attribute Details

#email_addressObject (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

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/exacto_subscriber/unsubscription.rb', line 3

def status
  @status
end

#unsubscribed_atObject (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_nameObject



11
12
13
# File 'lib/exacto_subscriber/unsubscription.rb', line 11

def response_system_name
  "subscriber"
end