Class: Twilio::REST::Api::V2010::AccountContext::NewSigningKeyInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::NewSigningKeyInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
Instance Method Summary collapse
-
#date_created ⇒ Time
The date and time in GMT that the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#date_updated ⇒ Time
The date and time in GMT that the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
-
#friendly_name ⇒ String
The string that you assigned to describe the resource.
-
#initialize(version, payload, account_sid: nil) ⇒ NewSigningKeyInstance
constructor
Initialize the NewSigningKeyInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#secret ⇒ String
The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth ‘password`).
-
#sid ⇒ String
The unique string that that we created to identify the NewSigningKey resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ NewSigningKeyInstance
Initialize the NewSigningKeyInstance
108 109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 108 def initialize(version, payload , account_sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'friendly_name' => payload['friendly_name'], 'date_created' => Twilio.deserialize_rfc2822(payload['date_created']), 'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']), 'secret' => payload['secret'], } end |
Instance Method Details
#date_created ⇒ Time
Returns The date and time in GMT that the resource was created specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
136 137 138 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 136 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date and time in GMT that the resource was last updated specified in [RFC 2822](www.ietf.org/rfc/rfc2822.txt) format.
142 143 144 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 142 def date_updated @properties['date_updated'] end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource.
130 131 132 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 130 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
160 161 162 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 160 def inspect "<Twilio.Api.V2010.NewSigningKeyInstance>" end |
#secret ⇒ String
Returns The secret your application uses to sign Access Tokens and to authenticate to the REST API (you will use this as the basic-auth ‘password`). **Note that for security reasons, this field is ONLY returned when the API Key is first created.**.
148 149 150 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 148 def secret @properties['secret'] end |
#sid ⇒ String
Returns The unique string that that we created to identify the NewSigningKey resource.
124 125 126 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 124 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
154 155 156 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 154 def to_s "<Twilio.Api.V2010.NewSigningKeyInstance>" end |