lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-6.0.0.pre.rc.3 vs lib/twilio-ruby/rest/api/v2010/account.rb in twilio-ruby-6.0.0
- old
+ new
@@ -237,106 +237,78 @@
# @return [UsageList]
# @return [UsageContext]
def usage
unless @usage
@usage = UsageList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@usage
end
##
# Access the new_keys
# @return [NewKeyList]
# @return [NewKeyContext]
def new_keys
unless @new_keys
@new_keys = NewKeyList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@new_keys
end
##
# Access the validation_requests
# @return [ValidationRequestList]
# @return [ValidationRequestContext]
def validation_requests
unless @validation_requests
@validation_requests = ValidationRequestList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@validation_requests
end
##
# Access the tokens
# @return [TokenList]
# @return [TokenContext]
def tokens
unless @tokens
@tokens = TokenList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@tokens
end
##
# Access the balance
# @return [BalanceList]
# @return [BalanceContext]
def balance
unless @balance
@balance = BalanceList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@balance
end
##
# Access the sip
# @return [SipList]
# @return [SipContext]
def sip
unless @sip
@sip = SipList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@sip
end
##
# Access the new_signing_keys
# @return [NewSigningKeyList]
# @return [NewSigningKeyContext]
def new_signing_keys
unless @new_signing_keys
@new_signing_keys = NewSigningKeyList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
-
@new_signing_keys
end
##
# Access the applications
# @return [ApplicationList]
@@ -349,14 +321,11 @@
return ApplicationContext.new(@version, @solution[:sid],sid )
end
unless @applications
@applications = ApplicationList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@applications
end
##
@@ -371,14 +340,11 @@
return RecordingContext.new(@version, @solution[:sid],sid )
end
unless @recordings
@recordings = RecordingList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@recordings
end
##
@@ -393,14 +359,11 @@
return ConnectAppContext.new(@version, @solution[:sid],sid )
end
unless @connect_apps
@connect_apps = ConnectAppList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@connect_apps
end
##
@@ -415,14 +378,11 @@
return CallContext.new(@version, @solution[:sid],sid )
end
unless @calls
@calls = CallList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@calls
end
##
@@ -437,14 +397,11 @@
return SigningKeyContext.new(@version, @solution[:sid],sid )
end
unless @signing_keys
@signing_keys = SigningKeyList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@signing_keys
end
##
@@ -459,14 +416,11 @@
return OutgoingCallerIdContext.new(@version, @solution[:sid],sid )
end
unless @outgoing_caller_ids
@outgoing_caller_ids = OutgoingCallerIdList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@outgoing_caller_ids
end
##
@@ -481,14 +435,11 @@
return ShortCodeContext.new(@version, @solution[:sid],sid )
end
unless @short_codes
@short_codes = ShortCodeList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@short_codes
end
##
@@ -503,14 +454,11 @@
return IncomingPhoneNumberContext.new(@version, @solution[:sid],sid )
end
unless @incoming_phone_numbers
@incoming_phone_numbers = IncomingPhoneNumberList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@incoming_phone_numbers
end
##
@@ -525,14 +473,11 @@
return QueueContext.new(@version, @solution[:sid],sid )
end
unless @queues
@queues = QueueList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@queues
end
##
@@ -547,14 +492,11 @@
return AuthorizedConnectAppContext.new(@version, @solution[:sid],connect_app_sid )
end
unless @authorized_connect_apps
@authorized_connect_apps = AuthorizedConnectAppList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@authorized_connect_apps
end
##
@@ -569,14 +511,11 @@
return AvailablePhoneNumberCountryContext.new(@version, @solution[:sid],country_code )
end
unless @available_phone_numbers
@available_phone_numbers = AvailablePhoneNumberCountryList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@available_phone_numbers
end
##
@@ -591,14 +530,11 @@
return AddressContext.new(@version, @solution[:sid],sid )
end
unless @addresses
@addresses = AddressList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@addresses
end
##
@@ -613,14 +549,11 @@
return TranscriptionContext.new(@version, @solution[:sid],sid )
end
unless @transcriptions
@transcriptions = TranscriptionList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@transcriptions
end
##
@@ -635,14 +568,11 @@
return ConferenceContext.new(@version, @solution[:sid],sid )
end
unless @conferences
@conferences = ConferenceList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@conferences
end
##
@@ -657,14 +587,11 @@
return KeyContext.new(@version, @solution[:sid],sid )
end
unless @keys
@keys = KeyList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@keys
end
##
@@ -679,14 +606,11 @@
return NotificationContext.new(@version, @solution[:sid],sid )
end
unless @notifications
@notifications = NotificationList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@notifications
end
##
@@ -701,13 +625,10 @@
return MessageContext.new(@version, @solution[:sid],sid )
end
unless @messages
@messages = MessageList.new(
- @version,
- account_sid: @solution[:sid]
-
- )
+ @version, account_sid: @solution[:sid], )
end
@messages
end