Sha256: 3c5ffed4701faffea65a8efae1b515bb151e8c442102e9363ecea70189ee422d
Contents?: true
Size: 1.1 KB
Versions: 95
Compression:
Stored size: 1.1 KB
Contents
module Plivo module Resources include Plivo::Utils class Pricing < Base::Resource def initialize(client, options = nil) @_name = 'Pricing' @_identifier_string = 'country_iso' super end 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 end class PricingInterface < Base::ResourceInterface def initialize(client, resource_list_json = nil) @_name = 'Pricing' @_resource_type = Pricing @_identifier_string = 'country_iso' super end # @param [String] country_iso def get(country_iso) valid_param?(:country_iso, country_iso, [String, Symbol], true) unless country_iso.length == 2 raise_invalid_request('country_iso should be of length 2') end params = { country_iso: country_iso } perform_get_without_identifier(params) end end end end
Version data entries
95 entries across 95 versions & 1 rubygems