Class: CallRecorderApi::Model::GetProfileResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, code, profile, app, share_url, rate_url, credits, credits_trans) ⇒ GetProfileResponse

Returns a new instance of GetProfileResponse.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 15

def initialize(
    status,
    code,
    profile,
    app,
    share_url,
    rate_url,
    credits,
    credits_trans
)
    @status = status
    @code = code
    @profile = profile
    @app = app
    @share_url = share_url
    @rate_url = rate_url
    @credits = credits
    @credits_trans = credits_trans
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



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

def app
  @app
end

#codeObject

Returns the value of attribute code.



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

def code
  @code
end

#creditsObject

Returns the value of attribute credits.



12
13
14
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 12

def credits
  @credits
end

#credits_transObject

Returns the value of attribute credits_trans.



13
14
15
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 13

def credits_trans
  @credits_trans
end

#profileObject

Returns the value of attribute profile.



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

def profile
  @profile
end

#rate_urlObject

Returns the value of attribute rate_url.



11
12
13
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 11

def rate_url
  @rate_url
end

#share_urlObject

Returns the value of attribute share_url.



10
11
12
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 10

def share_url
  @share_url
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#to_sObject



35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/call_recorder_api/model/get_profile_response.rb', line 35

def to_s
    'GetProfileResponse{' +
        'status=' + status.to_s + ', ' +
        'code=' + code.to_s + ', ' +
        'profile=' + profile.to_s + ', ' +
        'app=' + app.to_s + ', ' +
        'share_url=' + share_url.to_s + ', ' +
        'rate_url=' + rate_url.to_s + ', ' +
        'credits=' + credits.to_s + ', ' +
        'credits_trans=' + credits_trans.to_s +
    '}'
end