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