Class: Twilio::REST::Messaging::V3

Inherits:
Version
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v3.rb,
lib/twilio-ruby/rest/messaging/v3/typing_indicator.rb,
lib/twilio-ruby/rest/messaging/v3/message_cost_estimate.rb

Defined Under Namespace

Classes: MessageCostEstimateInstance, MessageCostEstimateList, MessageCostEstimatePage, TypingIndicatorInstance, TypingIndicatorList, TypingIndicatorPage

Instance Attribute Summary

Attributes inherited from Version

#domain, #version

Instance Method Summary collapse

Methods inherited from Version

#absolute_url, #create, #create_with_metadata, #delete, #delete_with_metadata, #exception, #fetch, #fetch_with_metadata, #page, #patch, #read_limits, #relative_uri, #request, #stream, #stream_with_metadata, #update, #update_with_metadata

Constructor Details

#initialize(domain) ⇒ V3

Initialize the V3 version of Messaging



21
22
23
24
25
26
# File 'lib/twilio-ruby/rest/messaging/v3.rb', line 21

def initialize(domain)
    super
    @version = 'v3'
    @message_cost_estimate = nil
    @typing_indicator = nil
end

Instance Method Details

#message_cost_estimate ⇒ Twilio::REST::Messaging::V3::MessageCostEstimateList



30
31
32
# File 'lib/twilio-ruby/rest/messaging/v3.rb', line 30

def message_cost_estimate
    @message_cost_estimate ||= MessageCostEstimateList.new self
end

#to_s ⇒ Object

Provide a user friendly representation



40
41
42
# File 'lib/twilio-ruby/rest/messaging/v3.rb', line 40

def to_s
    '<Twilio::REST::Messaging::V3>';
end

#typing_indicator ⇒ Twilio::REST::Messaging::V3::TypingIndicatorList



35
36
37
# File 'lib/twilio-ruby/rest/messaging/v3.rb', line 35

def typing_indicator
    @typing_indicator ||= TypingIndicatorList.new self
end