class Twilio::REST::FrontlineApi::V1

Public Class Methods

new(domain) click to toggle source

Initialize the V1 version of FrontlineApi

Calls superclass method Twilio::REST::Version::new
   # File lib/twilio-ruby/rest/frontline_api/v1.rb
15 def initialize(domain)
16   super
17   @version = 'v1'
18   @users = nil
19 end

Public Instance Methods

to_s() click to toggle source

Provide a user friendly representation

   # File lib/twilio-ruby/rest/frontline_api/v1.rb
39 def to_s
40   '<Twilio::REST::FrontlineApi::V1>'
41 end
users(sid=:unset) click to toggle source

@param [String] sid The SID of the User resource to fetch. This value can be

either the `sid` or the `identity` of the User resource to fetch.

@return [Twilio::REST::Frontline_api::V1::UserContext] if sid was passed. @return [Twilio::REST::Frontline_api::V1::UserList]

   # File lib/twilio-ruby/rest/frontline_api/v1.rb
26 def users(sid=:unset)
27   if sid.nil?
28       raise ArgumentError, 'sid cannot be nil'
29   end
30   if sid == :unset
31       @users ||= UserList.new self
32   else
33       UserContext.new(self, sid)
34   end
35 end