lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.0.0.pre.rc.3 vs lib/twilio-ruby/rest/api/v2010/account/call.rb in twilio-ruby-6.0.0
- old
+ new
@@ -429,33 +429,23 @@
# @return [EventList]
# @return [EventContext]
def events
unless @events
@events = EventList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
-
@events
end
##
# Access the user_defined_messages
# @return [UserDefinedMessageList]
# @return [UserDefinedMessageContext]
def user_defined_messages
unless @user_defined_messages
@user_defined_messages = UserDefinedMessageList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
-
@user_defined_messages
end
##
# Access the siprec
# @return [SiprecList]
@@ -468,15 +458,11 @@
return SiprecContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @siprec
@siprec = SiprecList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@siprec
end
##
@@ -491,15 +477,11 @@
return UserDefinedMessageSubscriptionContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @user_defined_message_subscriptions
@user_defined_message_subscriptions = UserDefinedMessageSubscriptionList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@user_defined_message_subscriptions
end
##
@@ -514,15 +496,11 @@
return PaymentContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @payments
@payments = PaymentList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@payments
end
##
@@ -537,15 +515,11 @@
return RecordingContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @recordings
@recordings = RecordingList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@recordings
end
##
@@ -560,15 +534,11 @@
return NotificationContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @notifications
@notifications = NotificationList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@notifications
end
##
@@ -594,14 +564,10 @@
return StreamContext.new(@version, @solution[:account_sid], @solution[:sid],sid )
end
unless @streams
@streams = StreamList.new(
- @version,
- account_sid: @solution[:account_sid],
- call_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:account_sid], call_sid: @solution[:sid], )
end
@streams
end