Class: Twilio::REST::Api::V2010::AccountContext::NewKeyInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Api::V2010::AccountContext::NewKeyInstance
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/new_key.rb
Instance Method Summary collapse
-
#date_created ⇒ Time
The date_created.
-
#date_updated ⇒ Time
The date_updated.
-
#friendly_name ⇒ String
The friendly_name.
-
#initialize(version, payload, account_sid: nil) ⇒ NewKeyInstance
constructor
Initialize the NewKeyInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#secret ⇒ String
The secret.
-
#sid ⇒ String
The sid.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, account_sid: nil) ⇒ NewKeyInstance
Initialize the NewKeyInstance
100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 100 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_created.
127 128 129 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 127 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date_updated.
133 134 135 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 133 def date_updated @properties['date_updated'] end |
#friendly_name ⇒ String
Returns The friendly_name.
121 122 123 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 121 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
151 152 153 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 151 def inspect "<Twilio.Api.V2010.NewKeyInstance>" end |
#secret ⇒ String
Returns The secret.
139 140 141 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 139 def secret @properties['secret'] end |
#sid ⇒ String
Returns The sid.
115 116 117 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 115 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
145 146 147 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 145 def to_s "<Twilio.Api.V2010.NewKeyInstance>" end |