Sha256: e179276562344586284cdb1495987cdd9cf489d9766ac84cf1b482a9d4e90320
Contents?: true
Size: 365 Bytes
Versions: 61
Compression:
Stored size: 365 Bytes
Contents
# frozen_string_literal: true module Ibrain::Interfaces::PersonInterface include Ibrain::Types::BaseInterface description 'Person Interface' field :first_name, String, null: true field :last_name, String, null: true field :full_name, String, null: true def full_name [object.try(:first_name), object.try(:last_name)].compact.join(' ') end end
Version data entries
61 entries across 61 versions & 1 rubygems