Class: CallRecorderApi::Model::BuyCreditsRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key, amount, receipt, product_id, device_type) ⇒ BuyCreditsRequest

Returns a new instance of BuyCreditsRequest.



12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/call_recorder_api/model/buy_credits_request.rb', line 12

def initialize(
    api_key,
    amount,
    receipt,
    product_id,
    device_type
)
    @api_key = api_key
    @amount = amount
    @receipt = receipt
    @product_id = product_id
    @device_type = device_type
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

#device_typeObject

Returns the value of attribute device_type.



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

def device_type
  @device_type
end

#product_idObject

Returns the value of attribute product_id.



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

def product_id
  @product_id
end

#receiptObject

Returns the value of attribute receipt.



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

def receipt
  @receipt
end

Instance Method Details

#to_sObject



26
27
28
29
30
31
32
33
34
# File 'lib/call_recorder_api/model/buy_credits_request.rb', line 26

def to_s
    'BuyCreditsRequest{' +
        'api_key=' + api_key.to_s + ', ' +
        'amount=' + amount.to_s + ', ' +
        'receipt=' + receipt.to_s + ', ' +
        'product_id=' + product_id.to_s + ', ' +
        'device_type=' + device_type.to_s +
    '}'
end