mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-20 00:37:26 +00:00
12 lines
275 B
Ruby
12 lines
275 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PersonBuilder < DfcBuilder
|
|
def self.person(user)
|
|
DataFoodConsortium::Connector::Person.new(
|
|
urls.person_url(user.id),
|
|
firstName: user.bill_address&.firstname,
|
|
lastName: user.bill_address&.lastname,
|
|
)
|
|
end
|
|
end
|