Class: ConnectorKit::UserListResponseMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/connector_kit/mappers/user_list_response_mapper.rb

Overview

Mapper between a HTTParty response and a list of Users

Instance Method Summary collapse

Instance Method Details

#map(data) ⇒ Object



6
7
8
# File 'lib/connector_kit/mappers/user_list_response_mapper.rb', line 6

def map(data)
  data.map { |user| User.new(user) }
end