Sha256: 50e744cc59551774d894c66af7aa91442d641660dac49001526421f640355d1e
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult module Entities class Result module Commands class CastResultParams < Support::Command attr_reader :params def initialize(params:) @params = params end def call Structs::ResultParams.new( service: params[:service], status: Entities::Status.cast!(params[:status]), data: Entities::Data.cast!(params[:data]), message: Entities::Message.cast!(params[:message]), code: Entities::Code.cast!(params[:code]) ) end end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.1.0 | lib/convenient_service/service/plugins/has_result/entities/result/commands/cast_result_params.rb |