Class: VoiceML::PricingV2Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/resources/pricing.rb

Overview

client.pricing.v2.* — Voice, Trunking.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transport) ⇒ PricingV2Resource

Returns a new instance of PricingV2Resource.



129
130
131
132
133
134
135
136
137
138
# File 'lib/voiceml/resources/pricing.rb', line 129

def initialize(transport)
  @voice = PricingProduct.new(
    PricingCountriesResource.new(transport, '/v2/Voice/Countries', PricingVoiceCountryV2),
    PricingV2VoiceNumbersResource.new(transport)
  )
  @trunking = PricingProduct.new(
    PricingCountriesResource.new(transport, '/v2/Trunking/Countries', PricingTrunkingCountry),
    PricingV2TrunkingNumbersResource.new(transport)
  )
end

Instance Attribute Details

#trunkingObject (readonly)

Returns the value of attribute trunking.



127
128
129
# File 'lib/voiceml/resources/pricing.rb', line 127

def trunking
  @trunking
end

#voiceObject (readonly)

Returns the value of attribute voice.



127
128
129
# File 'lib/voiceml/resources/pricing.rb', line 127

def voice
  @voice
end