Class: Plugzapi::ValidatePhone

Inherits:
Connections show all
Defined in:
lib/plugzapi/validate_phone.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Connections

#call

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_idObject (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

#phoneObject (readonly)

Returns the value of attribute phone.



5
6
7
# File 'lib/plugzapi/validate_phone.rb', line 5

def phone
  @phone
end

#tokenObject (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