Class: Twilio::REST::FlexApi::V2

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/flex_api/v2.rb,
lib/twilio-ruby/rest/flex_api/v2/web_channels.rb

Defined Under Namespace

Classes: WebChannelsInstance, WebChannelsList, WebChannelsPage

Instance Attribute Summary

Attributes inherited from Version

#domain

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #delete, #exception, #fetch, #page, #read_limits, #relative_uri, #request, #stream, #update

Constructor Details

#initialize(domain) ⇒ V2

Initialize the V2 version of FlexApi



21
22
23
24
25
# File 'lib/twilio-ruby/rest/flex_api/v2.rb', line 21

def initialize(domain)
    super
    @version = 'v2'
    @web_channels = nil
end

Instance Method Details

#to_sObject

Provide a user friendly representation



34
35
36
# File 'lib/twilio-ruby/rest/flex_api/v2.rb', line 34

def to_s
    '<Twilio::REST::FlexApi::V2>';
end

#web_channelsTwilio::REST::FlexApi::V2::WebChannelsList



29
30
31
# File 'lib/twilio-ruby/rest/flex_api/v2.rb', line 29

def web_channels
    @web_channels ||= WebChannelsList.new self
end