lib/twilio-ruby/rest/api/v2010/account/new_key.rb in twilio-ruby-5.0.0.rc21 vs lib/twilio-ruby/rest/api/v2010/account/new_key.rb in twilio-ruby-5.0.0.rc22
- old
+ new
@@ -29,22 +29,22 @@
##
# Retrieve a single page of NewKeyInstance records from the API.
# Request is executed immediately.
# @param [String] friendly_name The friendly_name
# @return [NewKeyInstance] Newly created NewKeyInstance
- def create(friendly_name: nil)
- data = {
+ def create(friendly_name: :unset)
+ data = Twilio::Values.of({
'FriendlyName' => friendly_name,
- }
+ })
payload = @version.create(
'POST',
@uri,
data: data
)
- return NewKeyInstance.new(
+ NewKeyInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
)
end
@@ -75,10 +75,10 @@
##
# Build an instance of NewKeyInstance
# @param [Hash] payload Payload response from the API
# @return [NewKeyInstance] NewKeyInstance
def get_instance(payload)
- return NewKeyInstance.new(
+ NewKeyInstance.new(
@version,
payload,
account_sid: @solution[:account_sid],
)
end
\ No newline at end of file