Class: CallRecorderApi::Model::GetTranslationsResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, msg, code, translation) ⇒ GetTranslationsResponse

Returns a new instance of GetTranslationsResponse.



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

def initialize(
    status,
    msg,
    code,
    translation
)
    @status = status
    @msg = msg
    @code = code
    @translation = translation
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#msgObject

Returns the value of attribute msg.



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

def msg
  @msg
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#translationObject

Returns the value of attribute translation.



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

def translation
  @translation
end

Instance Method Details

#to_sObject



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

def to_s
    'GetTranslationsResponse{' +
        'status=' + status.to_s + ', ' +
        'msg=' + msg.to_s + ', ' +
        'code=' + code.to_s + ', ' +
        'translation=' + translation.to_s +
    '}'
end