Class: CallRecorderApi::Model::VerifyPhoneRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/call_recorder_api/model/verify_phone_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, phone, code, mcc, app, device_token, device_id, device_type, time_zone) ⇒ VerifyPhoneRequest

Returns a new instance of VerifyPhoneRequest.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 16

def initialize(
    token,
    phone,
    code,
    mcc,
    app,
    device_token,
    device_id,
    device_type,
    time_zone
)
    @token = token
    @phone = phone
    @code = code
    @mcc = mcc
    @app = app
    @device_token = device_token
    @device_id = device_id
    @device_type = device_type
    @time_zone = time_zone
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



10
11
12
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 10

def app
  @app
end

#codeObject

Returns the value of attribute code.



8
9
10
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 8

def code
  @code
end

#device_idObject

Returns the value of attribute device_id.



12
13
14
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 12

def device_id
  @device_id
end

#device_tokenObject

Returns the value of attribute device_token.



11
12
13
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 11

def device_token
  @device_token
end

#device_typeObject

Returns the value of attribute device_type.



13
14
15
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 13

def device_type
  @device_type
end

#mccObject

Returns the value of attribute mcc.



9
10
11
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 9

def mcc
  @mcc
end

#phoneObject

Returns the value of attribute phone.



7
8
9
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 7

def phone
  @phone
end

#time_zoneObject

Returns the value of attribute time_zone.



14
15
16
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 14

def time_zone
  @time_zone
end

#tokenObject

Returns the value of attribute token.



6
7
8
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 6

def token
  @token
end

Instance Method Details

#to_sObject



38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/call_recorder_api/model/verify_phone_request.rb', line 38

def to_s
    'VerifyPhoneRequest{' +
        'token=' + token.to_s + ', ' +
        'phone=' + phone.to_s + ', ' +
        'code=' + code.to_s + ', ' +
        'mcc=' + mcc.to_s + ', ' +
        'app=' + app.to_s + ', ' +
        'device_token=' + device_token.to_s + ', ' +
        'device_id=' + device_id.to_s + ', ' +
        'device_type=' + device_type.to_s + ', ' +
        'time_zone=' + time_zone.to_s +
    '}'
end