From 385631f49e712f07037f091062c5700a7b7857f0 Mon Sep 17 00:00:00 2001 From: Chris Garvin Date: Tue, 21 Feb 2017 16:49:08 -0800 Subject: [PATCH] sdk/ruby: remove required keyword arguments Closes #554 --- sdk/ruby/lib/chain/access_token.rb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/sdk/ruby/lib/chain/access_token.rb b/sdk/ruby/lib/chain/access_token.rb index d1b8ee077c..ff543fdad3 100755 --- a/sdk/ruby/lib/chain/access_token.rb +++ b/sdk/ruby/lib/chain/access_token.rb @@ -27,12 +27,15 @@ class AccessToken < ResponseObject class ClientModule < Chain::ClientModule + # Create client/network access token. + # @param [Hash] opts + # @option params [String] :type Type specifiying the type of access token to be created. + # You must specify either 'client' or 'network'. + # @option params [String] :id ID specifying the ID of newly created access token. + # You must specify a unique ID for access token. # @return [AccessToken] - def create(type:, id:) - AccessToken.new(client.conn.request( - 'create-access-token', - {type: type, id: id} - )) + def create(opts = {}) + AccessToken.new(client.conn.request('create-access-token', opts)) end # @param [Hash] opts