Class: Plivo::Resources::Pricing

Inherits:
Base::Resource show all
Defined in:
lib/plivo/resources/pricings.rb

Constant Summary

Constants included from Utils

Utils::TYPE_WHITELIST

Instance Attribute Summary

Attributes inherited from Base::Resource

#id

Instance Method Summary collapse

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, options = nil)
  @_name = 'Pricing'
  @_identifier_string = 'country_iso'
  super
end

Instance Method Details

#to_sObject



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