Sha256: 4e22860633ca0c695f723e5de1e45b5cf3d8690f645067bf6597cf156ae9a91f
Contents?: true
Size: 740 Bytes
Versions: 7
Compression:
Stored size: 740 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Examples module Rails module Gemfile module Services class MergeSections include RailsService::Config attribute :header, :string attribute :body, :string validates :header, presence: true if ConvenientService::Dependencies.support_has_result_params_validations_using_active_model_validations? validates :body, presence: true if ConvenientService::Dependencies.support_has_result_params_validations_using_active_model_validations? def result success(merged_sections: "#{header}\n#{body}") end end end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems