Class: Twilio::REST::FrontlineApi::V1
- Defined in:
- lib/twilio-ruby/rest/frontline_api/v1.rb,
lib/twilio-ruby/rest/frontline_api/v1/user.rb
Defined Under Namespace
Classes: UserContext, UserInstance, UserList, UserPage
Instance Attribute Summary
Attributes inherited from Version
Instance Method Summary collapse
-
#initialize(domain) ⇒ V1
constructor
Initialize the V1 version of FrontlineApi.
-
#to_s ⇒ Object
Provide a user friendly representation.
- #users(sid = :unset) ⇒ Twilio::REST::FrontlineApi::V1::UserContext, Twilio::REST::FrontlineApi::V1::UserList
Methods inherited from Version
#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update
Constructor Details
#initialize(domain) ⇒ V1
Initialize the V1 version of FrontlineApi
21 22 23 24 25 |
# File 'lib/twilio-ruby/rest/frontline_api/v1.rb', line 21 def initialize(domain) super @version = 'v1' @users = nil end |
Instance Method Details
#to_s ⇒ Object
Provide a user friendly representation
43 44 45 |
# File 'lib/twilio-ruby/rest/frontline_api/v1.rb', line 43 def to_s '<Twilio::REST::FrontlineApi::V1>'; end |
#users(sid = :unset) ⇒ Twilio::REST::FrontlineApi::V1::UserContext, Twilio::REST::FrontlineApi::V1::UserList
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/twilio-ruby/rest/frontline_api/v1.rb', line 31 def users(sid=:unset) if sid.nil? raise ArgumentError, 'sid cannot be nil' end if sid == :unset @users ||= UserList.new self else UserContext.new(self, sid) end end |