Class: CallRecorderApi::Model::BuyCreditsRequest
- Inherits:
-
Object
- Object
- CallRecorderApi::Model::BuyCreditsRequest
- Defined in:
- lib/call_recorder_api/model/buy_credits_request.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#device_type ⇒ Object
Returns the value of attribute device_type.
-
#product_id ⇒ Object
Returns the value of attribute product_id.
-
#receipt ⇒ Object
Returns the value of attribute receipt.
Instance Method Summary collapse
-
#initialize(api_key, amount, receipt, product_id, device_type) ⇒ BuyCreditsRequest
constructor
A new instance of BuyCreditsRequest.
- #to_s ⇒ Object
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
#amount ⇒ Object
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_key ⇒ Object
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_type ⇒ Object
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_id ⇒ Object
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 |
#receipt ⇒ Object
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_s ⇒ Object
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 |