Class: Twilio::REST::Marketplace::V1::ReferralConversionInstance

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ ReferralConversionInstance

Initialize the ReferralConversionInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • account_sid (String)

    The SID of the Account that created this ReferralConversion resource.

  • sid (String)

    The SID of the Call resource to fetch.



114
115
116
117
118
119
120
121
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 114

def initialize(version, payload )
    super(version)
    
    # Marshaled Properties
    @properties = { 
        'converted_account_sid' => payload['converted_account_sid'],
    }
end

Instance Method Details

#converted_account_sidString

Returns:

  • (String)


126
127
128
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 126

def 
    @properties['converted_account_sid']
end

#inspectObject

Provide a detailed, user friendly representation



138
139
140
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 138

def inspect
    "<Twilio.Marketplace.V1.ReferralConversionInstance>"
end

#to_sObject

Provide a user friendly representation



132
133
134
# File 'lib/twilio-ruby/rest/marketplace/v1/referral_conversion.rb', line 132

def to_s
    "<Twilio.Marketplace.V1.ReferralConversionInstance>"
end