Class: Plugzapi::SendMessage
- Inherits:
-
Connections
- Object
- Connections
- Plugzapi::SendMessage
- Defined in:
- lib/plugzapi/send_message.rb
Instance Attribute Summary collapse
-
#instance_id ⇒ Object
readonly
Returns the value of attribute instance_id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#phone ⇒ Object
readonly
Returns the value of attribute phone.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(instance_id, token, phone, message) ⇒ SendMessage
constructor
A new instance of SendMessage.
Methods inherited from Connections
Constructor Details
#initialize(instance_id, token, phone, message) ⇒ SendMessage
Returns a new instance of SendMessage.
11 12 13 14 15 16 |
# File 'lib/plugzapi/send_message.rb', line 11 def initialize(instance_id, token, phone, ) @instance_id = instance_id @token = token @phone = phone = end |
Instance Attribute Details
#instance_id ⇒ Object (readonly)
Returns the value of attribute instance_id.
5 6 7 |
# File 'lib/plugzapi/send_message.rb', line 5 def instance_id @instance_id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/plugzapi/send_message.rb', line 5 def end |
#phone ⇒ Object (readonly)
Returns the value of attribute phone.
5 6 7 |
# File 'lib/plugzapi/send_message.rb', line 5 def phone @phone end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/plugzapi/send_message.rb', line 5 def token @token end |
Class Method Details
.perform(instance_id:, token:, phone:, message:) ⇒ Object
7 8 9 |
# File 'lib/plugzapi/send_message.rb', line 7 def self.perform(instance_id:, token:, phone:, message:) new(instance_id, token, phone, ).call end |