class Twilio::REST::Api::V2010::AccountContext::NewSigningKeyInstance

Public Class Methods

new(version, payload, account_sid: nil) click to toggle source

Initialize the NewSigningKeyInstance @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 [NewSigningKeyInstance] NewSigningKeyInstance

Calls superclass method Twilio::REST::InstanceResource::new
   # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
86 def initialize(version, payload, account_sid: nil)
87   super(version)
88 
89   # Marshaled Properties
90   @properties = {
91       'sid' => payload['sid'],
92       'friendly_name' => payload['friendly_name'],
93       'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
94       'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
95       'secret' => payload['secret'],
96   }
97 end

Public Instance Methods

date_created() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was created

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
113 def date_created
114   @properties['date_created']
115 end
date_updated() click to toggle source

@return [Time] The RFC 2822 date and time in GMT that the resource was last updated

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
119 def date_updated
120   @properties['date_updated']
121 end
friendly_name() click to toggle source

@return [String] The string that you assigned to describe the resource

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
107 def friendly_name
108   @properties['friendly_name']
109 end
inspect() click to toggle source

Provide a detailed, user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
137 def inspect
138   "<Twilio.Api.V2010.NewSigningKeyInstance>"
139 end
secret() click to toggle source

@return [String] The secret your application uses to sign Access Tokens and to authenticate to the REST API.

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
125 def secret
126   @properties['secret']
127 end
sid() click to toggle source

@return [String] The unique string that identifies the resource

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
101 def sid
102   @properties['sid']
103 end
to_s() click to toggle source

Provide a user friendly representation

    # File lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
131 def to_s
132   "<Twilio.Api.V2010.NewSigningKeyInstance>"
133 end