Class: CallRecorderApi::Model::UpdateStarRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, id, star, type) ⇒ UpdateStarRequest

Returns a new instance of UpdateStarRequest.



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

def initialize(
    api_key,
    id,
    star,
    type
)
    @api_key = api_key
    @id = id
    @star = star
    @type = type
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#starObject

Returns the value of attribute star.



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

def star
  @star
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

Instance Method Details

#to_sObject



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

def to_s
    'UpdateStarRequest{' +
        'api_key=' + api_key.to_s + ', ' +
        'id=' + id.to_s + ', ' +
        'star=' + star.to_s + ', ' +
        'type=' + type.to_s +
    '}'
end