Class: Twilio::REST::Messaging::V1::BrandRegistrationContext::BrandRegistrationOtpInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, brand_registration_sid: nil) ⇒ BrandRegistrationOtpInstance

Initialize the BrandRegistrationOtpInstance

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 BrandRegistrationOtp resource.

  • sid (String)

    The SID of the Call resource to fetch.



101
102
103
104
105
106
107
108
109
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb', line 101

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

Instance Method Details

#account_sidString

Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Brand Registration resource.

Returns:



114
115
116
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb', line 114

def 
    @properties['account_sid']
end

#brand_registration_sidString

Returns The unique string to identify Brand Registration of Sole Proprietor Brand.

Returns:

  • (String)

    The unique string to identify Brand Registration of Sole Proprietor Brand



120
121
122
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb', line 120

def brand_registration_sid
    @properties['brand_registration_sid']
end

#inspectObject

Provide a detailed, user friendly representation



132
133
134
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb', line 132

def inspect
    "<Twilio.Messaging.V1.BrandRegistrationOtpInstance>"
end

#to_sObject

Provide a user friendly representation



126
127
128
# File 'lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_registration_otp.rb', line 126

def to_s
    "<Twilio.Messaging.V1.BrandRegistrationOtpInstance>"
end