Class: Siamese::Message
- Inherits:
-
Struct
- Object
- Struct
- Siamese::Message
- Defined in:
- lib/siamese/message.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#options ⇒ Object
Returns the value of attribute options.
-
#template ⇒ Object
Returns the value of attribute template.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
2 3 4 |
# File 'lib/siamese/message.rb', line 2 def context @context end |
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/siamese/message.rb', line 2 def end |
#template ⇒ Object
Returns the value of attribute template
2 3 4 |
# File 'lib/siamese/message.rb', line 2 def template @template end |
Instance Method Details
#deliver_now ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/siamese/message.rb', line 3 def deliver_now Siamese.deliver({ from: [:from] || Siamese.defaults[:from], to: [:to] || context.phone || Siamese.defaults[:to], body: [:body] || render, }) end |