Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Ruby inspect method to Context classes #438

Merged
merged 1 commit into from
Feb 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Accounts.V1.AwsContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Accounts.V1.AwsContext #{context}>"
end
end

class AwsInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Accounts.V1.PublicKeyContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Accounts.V1.PublicKeyContext #{context}>"
end
end

class PublicKeyInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AccountContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AccountContext #{context}>"
end
end

class AccountInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AddressContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AddressContext #{context}>"
end
end

class AddressInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ApplicationContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ApplicationContext #{context}>"
end
end

class ApplicationInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AuthorizedConnectAppContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AuthorizedConnectAppContext #{context}>"
end
end

class AuthorizedConnectAppInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AvailablePhoneNumberCountryContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AvailablePhoneNumberCountryContext #{context}>"
end
end

class AvailablePhoneNumberCountryInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.CallContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.CallContext #{context}>"
end
end

class CallInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.FeedbackContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.FeedbackContext #{context}>"
end
end

class FeedbackInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.FeedbackSummaryContext #{context}>"
end
end

class FeedbackSummaryInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/call/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.NotificationContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.NotificationContext #{context}>"
end
end

class NotificationInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/call/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end
end

class RecordingInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/conference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ConferenceContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ConferenceContext #{context}>"
end
end

class ConferenceInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ParticipantContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ParticipantContext #{context}>"
end
end

class ParticipantInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end
end

class RecordingInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/connect_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ConnectAppContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.ConnectAppContext #{context}>"
end
end

class ConnectAppInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.IncomingPhoneNumberContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.IncomingPhoneNumberContext #{context}>"
end
end

class IncomingPhoneNumberInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AssignedAddOnContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AssignedAddOnContext #{context}>"
end
end

##
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AssignedAddOnExtensionContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AssignedAddOnExtensionContext #{context}>"
end
end

##
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.KeyContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.KeyContext #{context}>"
end
end

class KeyInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MessageContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MessageContext #{context}>"
end
end

class MessageInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/message/media.rb
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MediaContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MediaContext #{context}>"
end
end

class MediaInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.NotificationContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.NotificationContext #{context}>"
end
end

class NotificationInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.OutgoingCallerIdContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.OutgoingCallerIdContext #{context}>"
end
end

class OutgoingCallerIdInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.QueueContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.QueueContext #{context}>"
end
end

class QueueInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/queue/member.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MemberContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.MemberContext #{context}>"
end
end

class MemberInstance < InstanceResource
Expand Down
7 changes: 7 additions & 0 deletions lib/twilio-ruby/rest/api/v2010/account/recording.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.RecordingContext #{context}>"
end
end

class RecordingInstance < InstanceResource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ def to_s
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AddOnResultContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Api.V2010.AddOnResultContext #{context}>"
end
end

class AddOnResultInstance < InstanceResource
Expand Down