lib/twilio-ruby/rest/notifications/v1.rb in twilio-ruby-5.0.0.rc4 vs lib/twilio-ruby/rest/notifications/v1.rb in twilio-ruby-5.0.0.rc5
- old
+ new
@@ -11,10 +11,19 @@
##
# Initialize the V1 version of Notifications
def initialize(domain)
super
@version = 'v1'
+ @credentials = nil
@services = nil
+ end
+
+ def credentials(sid=:unset)
+ if sid == :unset
+ @credentials ||= CredentialList.new self
+ else
+ CredentialContext.new(self, sid)
+ end
end
def services(sid=:unset)
if sid == :unset
@services ||= ServiceList.new self
\ No newline at end of file