Class: Twilio::REST::Marketplace::V1::ReferralConversionList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb

Defined Under Namespace

Classes: CreateReferralConversionRequest

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ ReferralConversionList

Initialize the ReferralConversionList

Parameters:

  • version (Version)

    Version that contains the resource



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

Parameters:

Returns:



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_sObject

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