Skip to content

Commit

Permalink
sdk/ruby: remove required keyword arguments
Browse files Browse the repository at this point in the history
Closes #554
  • Loading branch information
chrisgarvin committed Feb 22, 2017
1 parent 68c85f9 commit 385631f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions sdk/ruby/lib/chain/access_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 385631f

Please sign in to comment.