Sha256: f36f4d18754193a3b697ff914cfc36b0eeaad11e1f7b4556981e0baf2229c500

Contents?: true

Size: 1.01 KB

Versions: 6

Compression:

Stored size: 1.01 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

        def available_add_ons(sid=:unset)
          if sid == :unset
            @available_add_ons ||= AvailableAddOnList.new self
          else
            AvailableAddOnContext.new(self, sid)
          end
        end

        def installed_add_ons(sid=:unset)
          if 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

6 entries across 6 versions & 1 rubygems

Version Path
twilio-ruby-5.0.0.rc24 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.rc23 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.rc22 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.rc21 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.rc20 lib/twilio-ruby/rest/preview/marketplace.rb
twilio-ruby-5.0.0.rc19 lib/twilio-ruby/rest/preview/marketplace.rb