lib/twilio-ruby/rest/api/v2010/account/sms.rb in twilio-ruby-5.0.0.rc9 vs lib/twilio-ruby/rest/api/v2010/account/sms.rb in twilio-ruby-5.0.0.rc10
- old
+ new
@@ -13,11 +13,10 @@
##
# Initialize the SmsList
# @param [Version] version Version that contains the resource
# @param [String] account_sid A 34 character string that uniquely identifies this
# resource.
-
# @return [SmsList] SmsList
def initialize(version, account_sid: nil)
super(version)
# Path Solution
@@ -31,11 +30,10 @@
end
##
# Access the messages
# @param [String] sid The sid
-
# @return [SmsMessageList] SmsMessageList
def messages(sid=:unset)
if sid != :unset
return SmsMessageContext.new(
@version,
@@ -51,11 +49,10 @@
end
##
# Access the short_codes
# @param [String] sid The short-code Sid that uniquely identifies this resource
-
# @return [ShortCodeList] ShortCodeList
def short_codes(sid=:unset)
if sid != :unset
return ShortCodeContext.new(
@version,
@@ -83,11 +80,10 @@
# @param [Version] version Version that contains the resource
# @param [Response] response Response from the API
# @param [Hash] solution Path solution for the resource
# @param [String] account_sid A 34 character string that uniquely identifies this
# resource.
-
# @return [SmsPage] SmsPage
def initialize(version, response, solution)
super(version, response)
# Path Solution
@@ -95,17 +91,16 @@
end
##
# Build an instance of SmsInstance
# @param [Hash] payload Payload response from the API
-
# @return [SmsInstance] SmsInstance
def get_instance(payload)
return SmsInstance.new(
@version,
payload,
- account_sid: @solution['account_sid'],
+ account_sid: @solution[:account_sid],
)
end
##
# Provide a user friendly representation
@@ -119,10 +114,9 @@
# Initialize the SmsInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] account_sid A 34 character string that uniquely identifies this
# resource.
-
# @return [SmsInstance] SmsInstance
def initialize(version, payload, account_sid: nil)
super(version)
end
\ No newline at end of file