Class: QuestionproRails::UnsubscribedEmail

Inherits:
Object
  • Object
show all
Defined in:
lib/questionpro_rails/unsubscribed_email.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 4

def email
  @email
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/questionpro_rails/unsubscribed_email.rb', line 4

def id
  @id
end

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