Class: Plivo::Resources::Pricing
- Inherits:
-
Base::Resource
- Object
- Base::Resource
- Plivo::Resources::Pricing
- Defined in:
- lib/plivo/resources/pricings.rb
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from Base::Resource
Instance Method Summary collapse
-
#initialize(client, options = nil) ⇒ Pricing
constructor
A new instance of Pricing.
- #to_s ⇒ Object
Methods included from Utils
expected_type?, expected_value?, raise_invalid_request, valid_account?, valid_mainaccount?, valid_param?, valid_signature?, valid_subaccount?
Constructor Details
#initialize(client, options = nil) ⇒ Pricing
Returns a new instance of Pricing.
5 6 7 8 9 |
# File 'lib/plivo/resources/pricings.rb', line 5 def initialize(client, = nil) @_name = 'Pricing' @_identifier_string = 'country_iso' super end |
Instance Method Details
#to_s ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/plivo/resources/pricings.rb', line 11 def to_s { api_id: @api_id, country: @country, country_code: @country_code, country_iso: @country_iso, message: @message, phone_numbers: @phone_numbers, voice: @voice }.to_s end |