Class: ConnectorKit::BuildListResponseMapper

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

Overview

Mapper between a HTTParty response and a list of Builds

Instance Method Summary collapse

Instance Method Details

#map(data) ⇒ Object



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

def map(data)
  data.map { |build| Build.new(build) }
end