Class: BabySMS::Receipt
- Inherits:
-
Object
- Object
- BabySMS::Receipt
- Defined in:
- lib/babysms/receipt.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#exceptions ⇒ Object
readonly
Returns the value of attribute exceptions.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#message_uuid ⇒ Object
readonly
Returns the value of attribute message_uuid.
Instance Method Summary collapse
- #exceptions? ⇒ Boolean
-
#initialize(message:, adapter:, exceptions:, message_uuid:) ⇒ Receipt
constructor
A new instance of Receipt.
Constructor Details
#initialize(message:, adapter:, exceptions:, message_uuid:) ⇒ Receipt
Returns a new instance of Receipt.
8 9 10 11 12 13 |
# File 'lib/babysms/receipt.rb', line 8 def initialize(message:, adapter:, exceptions:, message_uuid:) @message = @adapter = adapter @exceptions = exceptions @message_uuid = end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
4 5 6 |
# File 'lib/babysms/receipt.rb', line 4 def adapter @adapter end |
#exceptions ⇒ Object (readonly)
Returns the value of attribute exceptions.
5 6 7 |
# File 'lib/babysms/receipt.rb', line 5 def exceptions @exceptions end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/babysms/receipt.rb', line 3 def @message end |
#message_uuid ⇒ Object (readonly)
Returns the value of attribute message_uuid.
6 7 8 |
# File 'lib/babysms/receipt.rb', line 6 def @message_uuid end |
Instance Method Details
#exceptions? ⇒ Boolean
15 16 17 |
# File 'lib/babysms/receipt.rb', line 15 def exceptions? !exceptions.empty? end |