Class: CallRecorderApi::Model::NotifyUserRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, title, body, device_type) ⇒ NotifyUserRequest

Returns a new instance of NotifyUserRequest.



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

def initialize(
    api_key,
    title,
    body,
    device_type
)
    @api_key = api_key
    @title = title
    @body = body
    @device_type = device_type
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#bodyObject

Returns the value of attribute body.



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

def body
  @body
end

#device_typeObject

Returns the value of attribute device_type.



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

def device_type
  @device_type
end

#titleObject

Returns the value of attribute title.



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

def title
  @title
end

Instance Method Details

#to_sObject



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

def to_s
    'NotifyUserRequest{' +
        'api_key=' + api_key.to_s + ', ' +
        'title=' + title.to_s + ', ' +
        'body=' + body.to_s + ', ' +
        'device_type=' + device_type.to_s +
    '}'
end