Class: Twilio::REST::FrontlineApi

Inherits:
Domain
  • Object
show all
Defined in:
lib/twilio-ruby/rest/frontline_api.rb,
lib/twilio-ruby/rest/frontline_api/v1.rb,
lib/twilio-ruby/rest/frontline_api/v1/user.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from Domain

#absolute_url, #request

Constructor Details

#initialize(twilio) ⇒ FrontlineApi

Initialize the FrontlineApi Domain


14
15
16
17
18
19
20
21
22
23
# File 'lib/twilio-ruby/rest/frontline_api.rb', line 14

def initialize(twilio)
  super

  @base_url = 'https://frontline-api.twilio.com'
  @host = 'frontline-api.twilio.com'
  @port = 443

  # Versions
  @v1 = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation


42
43
44
# File 'lib/twilio-ruby/rest/frontline_api.rb', line 42

def to_s
  '#<Twilio::REST::FrontlineApi>'
end

#users(sid = :unset) ⇒ Twilio::REST::Frontline_api::V1::UserInstance, Twilio::REST::Frontline_api::V1::UserList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the User resource.

Returns:

  • (Twilio::REST::Frontline_api::V1::UserInstance)

    if sid was passed.

  • (Twilio::REST::Frontline_api::V1::UserList)

36
37
38
# File 'lib/twilio-ruby/rest/frontline_api.rb', line 36

def users(sid=:unset)
  self.v1.users(sid)
end

#v1Object

Version v1 of frontline_api


27
28
29
# File 'lib/twilio-ruby/rest/frontline_api.rb', line 27

def v1
  @v1 ||= V1.new self
end