class Twilio::REST::Supersim::V1::SmsCommandContext

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Public Class Methods

new(version, sid) click to toggle source

Initialize the SmsCommandContext @param [Version] version Version that contains the resource @param [String] sid The SID of the SMS Command resource to fetch. @return [SmsCommandContext] SmsCommandContext

Calls superclass method Twilio::REST::InstanceContext::new
    # File lib/twilio-ruby/rest/supersim/v1/sms_command.rb
220 def initialize(version, sid)
221   super(version)
222 
223   # Path Solution
224   @solution = {sid: sid, }
225   @uri = "/SmsCommands/#{@solution[:sid]}"
226 end

Public Instance Methods

fetch() click to toggle source

Fetch the SmsCommandInstance @return [SmsCommandInstance] Fetched SmsCommandInstance

    # File lib/twilio-ruby/rest/supersim/v1/sms_command.rb
231 def fetch
232   payload = @version.fetch('GET', @uri)
233 
234   SmsCommandInstance.new(@version, payload, sid: @solution[:sid], )
235 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/supersim/v1/sms_command.rb
246 def inspect
247   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
248   "#<Twilio.Supersim.V1.SmsCommandContext #{context}>"
249 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/supersim/v1/sms_command.rb
239 def to_s
240   context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
241   "#<Twilio.Supersim.V1.SmsCommandContext #{context}>"
242 end