Sha256: 89c0b9a3c1ff09c3bb73d6a087a0a158cad068f7370c69b22c5b43395fab69f3

Contents?: true

Size: 1.73 KB

Versions: 15

Compression:

Stored size: 1.73 KB

Contents

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

module Twilio
  module REST
    class Preview
      class Marketplace < Version
        ##
        # Initialize the Marketplace version of Preview
        def initialize(domain)
          super
          @version = 'marketplace'
          @available_add_ons = nil
          @installed_add_ons = nil
        end

        ##
        # @param [String] sid The Available Add-on Sid that uniquely identifies this
        #   resource
        # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnInstance] if sid was passed.
        # @return [Twilio::REST::Preview::Marketplace::AvailableAddOnList]
        def available_add_ons(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @available_add_ons ||= AvailableAddOnList.new self
          else
            AvailableAddOnContext.new(self, sid)
          end
        end

        ##
        # @param [String] sid The Installed Add-on Sid that uniquely identifies this
        #   resource
        # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnInstance] if sid was passed.
        # @return [Twilio::REST::Preview::Marketplace::InstalledAddOnList]
        def installed_add_ons(sid=:unset)
          if sid.nil?
            raise ArgumentError, 'sid cannot be nil'
          elsif sid == :unset
            @installed_add_ons ||= InstalledAddOnList.new self
          else
            InstalledAddOnContext.new(self, sid)
          end
        end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
twilio-ruby-5.4.4 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.4.3 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.4.2 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.4.1 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.4.0 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.3.1 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.3.0 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.2.3 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.2.2 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.2.1 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.2.0 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.1.2 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.1.1 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.1.0 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.alpha1 lib/twilio-ruby/rest/preview/marketplace.rb