Class: Twilio::REST::Marketplace::V1
- Defined in:
- lib/twilio-ruby/rest/marketplace/v1.rb,
lib/twilio-ruby/rest/marketplace/v1/available_add_on.rb,
lib/twilio-ruby/rest/marketplace/v1/installed_add_on.rb,
lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb,
lib/twilio-ruby/rest/marketplace/v1/module_data_management.rb,
lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_usage.rb,
lib/twilio-ruby/rest/marketplace/v1/available_add_on/available_add_on_extension.rb,
lib/twilio-ruby/rest/marketplace/v1/installed_add_on/installed_add_on_extension.rb
Defined Under Namespace
Classes: AvailableAddOnContext, AvailableAddOnInstance, AvailableAddOnList, AvailableAddOnPage, InstalledAddOnContext, InstalledAddOnInstance, InstalledAddOnList, InstalledAddOnPage, ModuleDataManagementContext, ModuleDataManagementInstance, ModuleDataManagementList, ModuleDataManagementPage, ReferralConversionInstance, ReferralConversionList, ReferralConversionPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
- #available_add_ons(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::AvailableAddOnContext, Twilio::REST::Marketplace::V1::AvailableAddOnList
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of Marketplace.
- #installed_add_ons(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::InstalledAddOnContext, Twilio::REST::Marketplace::V1::InstalledAddOnList
- #module_data_management(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::ModuleDataManagementContext, Twilio::REST::Marketplace::V1::ModuleDataManagementList
- #referral_conversion ⇒ Twilio::REST::Marketplace::V1::ReferralConversionList
-
#to_s ⇒ Object
Provide a user friendly representation.
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of Marketplace
21 22 23 24 25 26 27 28 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 21 def initialize(domain) super @version = 'v1' @available_add_ons = nil @installed_add_ons = nil @module_data_management = nil @referral_conversion = nil end |
Instance Method Details
#available_add_ons(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::AvailableAddOnContext, Twilio::REST::Marketplace::V1::AvailableAddOnList
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 34 def available_add_ons(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @available_add_ons ||= AvailableAddOnList.new self else AvailableAddOnContext.new(self, sid) end end |
#installed_add_ons(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::InstalledAddOnContext, Twilio::REST::Marketplace::V1::InstalledAddOnList
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 48 def installed_add_ons(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @installed_add_ons ||= InstalledAddOnList.new self else InstalledAddOnContext.new(self, sid) end end |
#module_data_management(sid = :unset) ⇒ Twilio::REST::Marketplace::V1::ModuleDataManagementContext, Twilio::REST::Marketplace::V1::ModuleDataManagementList
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 62 def module_data_management(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @module_data_management ||= ModuleDataManagementList.new self else ModuleDataManagementContext.new(self, sid) end end |
#referral_conversion ⇒ Twilio::REST::Marketplace::V1::ReferralConversionList
74 75 76 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 74 def referral_conversion @referral_conversion ||= ReferralConversionList.new self end |
#to_s ⇒ Object
Provide a user friendly representation
79 80 81 |
# File 'lib/twilio-ruby/rest/marketplace/v1.rb', line 79 def to_s '<Twilio::REST::Marketplace::V1>'; end |