Class: CallRecorderApi::Model::Language

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, name, flag) ⇒ Language



10
11
12
13
14
15
16
17
18
# File 'lib/call_recorder_api/model/language.rb', line 10

def initialize(
    code,
    name,
    flag
)
    @code = code
    @name = name
    @flag = flag
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#flagObject

Returns the value of attribute flag.



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

def flag
  @flag
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

Instance Method Details

#to_sObject



20
21
22
23
24
25
26
# File 'lib/call_recorder_api/model/language.rb', line 20

def to_s
    'Language{' +
        'code=' + code.to_s + ', ' +
        'name=' + name.to_s + ', ' +
        'flag=' + flag.to_s +
    '}'
end