lib/promisepay/resources/user_resource.rb
# List all users for a marketplace
#
# @see https://reference.promisepay.com/#list-users
#
# @param options [Hash] Optional options.
# @option options [Integer] :limit Can ask for up to 200 users. default: 10
# @option options [Integer] :offset Pagination help. default: 0
#
# @return [Array<Promisepay::User>] List all users for a marketplace.
List all users for a marketplace
List all users for a marketplace
def find_all(options = {})
      response = JSON.parse(@client.get('users', options).body)
      users = response.key?('users') ? response['users'] : []
      users.map { |attributes| Promisepay::User.new(@client, attributes) }
    end
def find_all ( options = { } ) response = JSON . parse ( @client . get ( 'users' , options ) . body ) users = response . key? ( 'users' ) ? response [ 'users' ] : [ ] users . map { | attributes | Promisepay :: User . new ( @client , attributes ) } end
List all users for a marketplace
List all users for a marketplace
List all users for a marketplace.
List all users for a marketplace .
Array<Promisepay::User>
options
:offset Pagination help. default: 0
: offset Pagination help . default : 0
see
None