class Vonage::Pricing

Attributes

type[R]

Public Class Methods

new(config, type: nil) click to toggle source
Calls superclass method Vonage::Namespace::new
# File lib/vonage/pricing.rb, line 8
def initialize(config, type: nil)
  raise ArgumentError if type.nil?

  @type = type

  super config
end

Public Instance Methods

get(country) click to toggle source
# File lib/vonage/pricing.rb, line 18
def get(country)
  request('/account/get-pricing/outbound/' + @type, params: {country: country})
end
list() click to toggle source
# File lib/vonage/pricing.rb, line 22
def list
  request('/account/get-full-pricing/outbound/' + @type)
end
prefix(prefix) click to toggle source
# File lib/vonage/pricing.rb, line 26
def prefix(prefix)
  request('/account/get-prefix-pricing/outbound/' + @type, params: {prefix: prefix})
end