Class: Twilio::REST::Marketplace::V1::ReferralConversionList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Marketplace::V1::ReferralConversionList
- Defined in:
- lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb
Defined Under Namespace
Classes: CreateReferralConversionRequest
Instance Method Summary collapse
-
#create(create_referral_conversion_request: nil) ⇒ ReferralConversionInstance
Create the ReferralConversionInstance.
-
#initialize(version) ⇒ ReferralConversionList
constructor
Initialize the ReferralConversionList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version) ⇒ ReferralConversionList
Initialize the ReferralConversionList
40 41 42 43 44 45 46 |
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 40 def initialize(version) super(version) # Path Solution @solution = { } @uri = "/ReferralConversion" end |
Instance Method Details
#create(create_referral_conversion_request: nil) ⇒ ReferralConversionInstance
Create the ReferralConversionInstance
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 51 def create(create_referral_conversion_request: nil ) headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) headers['Content-Type'] = 'application/json' payload = @version.create('POST', @uri, headers: headers, data: create_referral_conversion_request.to_json) ReferralConversionInstance.new( @version, payload, ) end |
#to_s ⇒ Object
Provide a user friendly representation
71 72 73 |
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 71 def to_s '#<Twilio.Marketplace.V1.ReferralConversionList>' end |