Class: InvisibleCollector::Model::EmailList
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::EmailList
- Defined in:
- lib/invisible_collector/models/email_list.rb
Instance Attribute Summary collapse
-
#records ⇒ Object
Returns the value of attribute records.
-
#total_records ⇒ Object
Returns the value of attribute total_records.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ EmailList
constructor
A new instance of EmailList.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ EmailList
Returns a new instance of EmailList.
9 10 11 12 13 |
# File 'lib/invisible_collector/models/email_list.rb', line 9 def initialize( = {}) = .with_indifferent_access @records = [:records].map { |r| Email.new(r) } @total_records = [:total_records] end |
Instance Attribute Details
#records ⇒ Object
Returns the value of attribute records.
6 7 8 |
# File 'lib/invisible_collector/models/email_list.rb', line 6 def records @records end |
#total_records ⇒ Object
Returns the value of attribute total_records.
7 8 9 |
# File 'lib/invisible_collector/models/email_list.rb', line 7 def total_records @total_records end |