Sha256: ff68182593ed0c5235a6b82e2fa4d498924bd4626b6841714df069fe01de0c79
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# frozen_string_literal: true module ConvenientService module Service module Plugins module HasResult module Entities class Result module Plugins module HasJSendStatusAndAttributes module Commands class CastJSendAttributes < Support::Command attr_reader :attributes def initialize(attributes:) @attributes = attributes end def call Structs::JSendAttributes.new( service: attributes[:service], status: Entities::Status.cast!(attributes[:status]), data: Entities::Data.cast!(attributes[:data]), message: Entities::Message.cast!(attributes[:message]), code: Entities::Code.cast!(attributes[:code]) ) end end end end end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
convenient_service-0.12.0 | lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/commands/cast_j_send_attributes.rb |