class Plivo::Resources::PricingInterface
Public Class Methods
Source
# File lib/plivo/resources/pricings.rb, line 25 def initialize(client, resource_list_json = nil) @_name = 'Pricing' @_resource_type = Pricing @_identifier_string = 'country_iso' super end
Calls superclass method
Plivo::Base::ResourceInterface::new
Public Instance Methods
Source
# File lib/plivo/resources/pricings.rb, line 33 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
@param [String] country_iso