Sha256: fa006a03cb9425ca7ea968aa19ccef857372f527a7b68f66bf7056a236074e6a

Contents?: true

Size: 1.14 KB

Versions: 23

Compression:

Stored size: 1.14 KB

Contents

##
# This code was generated by
# \ / _    _  _|   _  _
#  | (_)\/(_)(_|\/| |(/_  v1.0.0
#       /       /
# 
# frozen_string_literal: true

module Twilio
  module REST
    class Pricing < Domain
      ##
      # Initialize the Pricing Domain
      def initialize(twilio)
        super

        @base_url = 'https://pricing.twilio.com'
        @host = 'pricing.twilio.com'
        @port = 443

        # Versions
        @v1 = nil
        @v2 = nil
      end

      ##
      # Version v1 of pricing
      def v1
        @v1 ||= V1.new self
      end

      ##
      # Version v2 of pricing
      def v2
        @v2 ||= V2.new self
      end

      ##
      # @return [Twilio::REST::Pricing::V1::MessagingInstance]
      def messaging
        self.v1.messaging()
      end

      ##
      # @return [Twilio::REST::Pricing::V1::PhoneNumberInstance]
      def phone_numbers
        self.v1.phone_numbers()
      end

      ##
      # @return [Twilio::REST::Pricing::V2::VoiceInstance]
      def voice
        self.v2.voice()
      end

      ##
      # Provide a user friendly representation
      def to_s
        '#<Twilio::REST::Pricing>'
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
twilio-ruby-5.23.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.22.3 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.22.2 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.22.1 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.22.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.21.2 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.21.1 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.21.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.20.1 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.20.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.19.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.18.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.17.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.16.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.15.2 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.15.1 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.15.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.14.1 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.14.0 lib/twilio-ruby/rest/pricing.rb
twilio-ruby-5.13.0 lib/twilio-ruby/rest/pricing.rb