Class: InvisibleCollector::Model::Email
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Email
- Defined in:
- lib/invisible_collector/models/email.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#events ⇒ Object
Returns the value of attribute events.
-
#id ⇒ Object
Returns the value of attribute id.
-
#smtp_id ⇒ Object
Returns the value of attribute smtp_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Email
constructor
A new instance of Email.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Email
Returns a new instance of Email.
12 13 14 15 16 17 18 |
# File 'lib/invisible_collector/models/email.rb', line 12 def initialize( = {}) = .with_indifferent_access @id = [:gid] @destination = [:destination] @status = [:status] @events = [:events] end |
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination.
7 8 9 |
# File 'lib/invisible_collector/models/email.rb', line 7 def destination @destination end |
#events ⇒ Object
Returns the value of attribute events.
9 10 11 |
# File 'lib/invisible_collector/models/email.rb', line 9 def events @events end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/invisible_collector/models/email.rb', line 6 def id @id end |
#smtp_id ⇒ Object
Returns the value of attribute smtp_id.
10 11 12 |
# File 'lib/invisible_collector/models/email.rb', line 10 def smtp_id @smtp_id end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/invisible_collector/models/email.rb', line 8 def status @status end |