Class: Twilio::REST::Api::V2010::AccountContext::NewSigningKeyList
- Inherits:
-
ListResource
- Object
- ListResource
- Twilio::REST::Api::V2010::AccountContext::NewSigningKeyList
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb
Instance Method Summary collapse
-
#create(friendly_name: :unset) ⇒ NewSigningKeyInstance
Retrieve a single page of NewSigningKeyInstance records from the API.
-
#initialize(version, account_sid: nil) ⇒ NewSigningKeyList
constructor
Initialize the NewSigningKeyList.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, account_sid: nil) ⇒ NewSigningKeyList
Initialize the NewSigningKeyList
19 20 21 22 23 24 25 26 27 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 19 def initialize(version, account_sid: nil) super(version) # Path Solution @solution = { account_sid: account_sid } @uri = "/Accounts/#{@solution[:account_sid]}/SigningKeys.json" end |
Instance Method Details
#create(friendly_name: :unset) ⇒ NewSigningKeyInstance
Retrieve a single page of NewSigningKeyInstance records from the API. Request is executed immediately.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 34 def create(friendly_name: :unset) data = Twilio::Values.of({ 'FriendlyName' => friendly_name, }) payload = @version.create( 'POST', @uri, data: data ) NewSigningKeyInstance.new( @version, payload, account_sid: @solution[:account_sid], ) end |
#to_s ⇒ Object
Provide a user friendly representation
54 55 56 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb', line 54 def to_s '#<Twilio.Api.V2010.NewSigningKeyList>' end |