Class: QuestionproRails::EmailBatch
- Inherits:
-
Object
- Object
- QuestionproRails::EmailBatch
- Defined in:
- lib/questionpro_rails/email_batch.rb
Instance Attribute Summary collapse
-
#batch_type ⇒ Object
readonly
Returns the value of attribute batch_type.
-
#completed ⇒ Object
readonly
Returns the value of attribute completed.
-
#email_group ⇒ Object
readonly
Returns the value of attribute email_group.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#initial_sent ⇒ Object
readonly
Returns the value of attribute initial_sent.
-
#participation_pending ⇒ Object
readonly
Returns the value of attribute participation_pending.
-
#participation_rate ⇒ Object
readonly
Returns the value of attribute participation_rate.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#viewed ⇒ Object
readonly
Returns the value of attribute viewed.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ EmailBatch
constructor
A new instance of EmailBatch.
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_type ⇒ Object (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 |
#completed ⇒ Object (readonly)
Returns the value of attribute completed.
4 5 6 |
# File 'lib/questionpro_rails/email_batch.rb', line 4 def completed @completed end |
#email_group ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/questionpro_rails/email_batch.rb', line 4 def id @id end |
#initial_sent ⇒ Object (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_pending ⇒ Object (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_rate ⇒ Object (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 |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/questionpro_rails/email_batch.rb', line 4 def status @status end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/questionpro_rails/email_batch.rb', line 4 def @timestamp end |
#viewed ⇒ Object (readonly)
Returns the value of attribute viewed.
4 5 6 |
# File 'lib/questionpro_rails/email_batch.rb', line 4 def viewed @viewed end |