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