Class: QuestionproRails::EmailBatch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ EmailBatch

Returns a new instance of EmailBatch.



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/questionpro_rails/email_batch.rb', line 7

def initialize (attributes)
  @id                    = attributes['batchID']
  @email_group           = attributes['emailGroup']
  @viewed                = attributes['viewed']
  @completed             = attributes['completed']      
  @participation_rate    = attributes['participationRate']
  @batch_type            = attributes['batchType']
  @participation_pending = attributes['participationPending']
  @timestamp             = attributes['timestamp']
  @initial_sent          = attributes['initialSent']
  @status                = attributes['status']
end

Instance Attribute Details

#batch_typeObject (readonly)

Returns the value of attribute batch_type.



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

def batch_type
  @batch_type
end

#completedObject (readonly)

Returns the value of attribute completed.



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

def completed
  @completed
end

#email_groupObject (readonly)

Returns the value of attribute email_group.



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

def email_group
  @email_group
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#initial_sentObject (readonly)

Returns the value of attribute initial_sent.



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

def initial_sent
  @initial_sent
end

#participation_pendingObject (readonly)

Returns the value of attribute participation_pending.



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

def participation_pending
  @participation_pending
end

#participation_rateObject (readonly)

Returns the value of attribute participation_rate.



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

def participation_rate
  @participation_rate
end

#statusObject (readonly)

Returns the value of attribute status.



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

def status
  @status
end

#timestampObject (readonly)

Returns the value of attribute timestamp.



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

def timestamp
  @timestamp
end

#viewedObject (readonly)

Returns the value of attribute viewed.



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

def viewed
  @viewed
end