Class: BabySMS::Report
- Inherits:
-
Object
- Object
- BabySMS::Report
- Defined in:
- lib/babysms/report.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#log ⇒ Object
readonly
Returns the value of attribute log.
Instance Method Summary collapse
- #incoming_message(message) ⇒ Object
-
#initialize(adapter) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(adapter) ⇒ Report
Returns a new instance of Report.
6 7 8 9 |
# File 'lib/babysms/report.rb', line 6 def initialize(adapter) @adapter = adapter @log = [] end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/babysms/report.rb', line 3 def adapter @adapter end |
#log ⇒ Object (readonly)
Returns the value of attribute log.
4 5 6 |
# File 'lib/babysms/report.rb', line 4 def log @log end |
Instance Method Details
#incoming_message(message) ⇒ Object
11 12 13 |
# File 'lib/babysms/report.rb', line 11 def () log.push([adapter, :incoming_message, { message: }]) end |