Class: CallRecorderApi::Model::VerifyPhoneResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, phone, api_key, msg) ⇒ VerifyPhoneResponse

Returns a new instance of VerifyPhoneResponse.



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/call_recorder_api/model/verify_phone_response.rb', line 11

def initialize(
    status,
    phone,
    api_key,
    msg
)
    @status = status
    @phone = phone
    @api_key = api_key
    @msg = msg
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#msgObject

Returns the value of attribute msg.



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

def msg
  @msg
end

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#to_sObject



23
24
25
26
27
28
29
30
# File 'lib/call_recorder_api/model/verify_phone_response.rb', line 23

def to_s
    'VerifyPhoneResponse{' +
        'status=' + status.to_s + ', ' +
        'phone=' + phone.to_s + ', ' +
        'api_key=' + api_key.to_s + ', ' +
        'msg=' + msg.to_s +
    '}'
end