Class: CallRecorderApi::Model::RegisterPhoneRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, phone) ⇒ RegisterPhoneRequest

Returns a new instance of RegisterPhoneRequest.



9
10
11
12
13
14
15
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 9

def initialize(
    token,
    phone
)
    @token = token
    @phone = phone
end

Instance Attribute Details

#phoneObject

Returns the value of attribute phone.



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

def phone
  @phone
end

#tokenObject

Returns the value of attribute token.



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

def token
  @token
end

Instance Method Details

#to_sObject



17
18
19
20
21
22
# File 'lib/call_recorder_api/model/register_phone_request.rb', line 17

def to_s
    'RegisterPhoneRequest{' +
        'token=' + token.to_s + ', ' +
        'phone=' + phone.to_s +
    '}'
end