class Plivo::Resources::PricingInterface

Public Class Methods

new(client, resource_list_json = nil) click to toggle source
Calls superclass method Plivo::Base::ResourceInterface::new
# 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

Public Instance Methods

get(country_iso) click to toggle source

@param [String] country_iso

# 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