Sha256: 4f6a18e0bf1d4aa54300e1965d0d6157e44d5c4cc673cdd09c3e2c0740a7eb73
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require 'money_s3/base_element' require 'money_s3/reference_type' require 'money_s3/error_info_type' module MoneyS3 class MessageType include BaseElement def status at :Status end def reference submodel_at(ReferenceType, :Reference) end def error_info array_of_at(ErrorInfoType, [:ErrorInfo]) end def to_h { status: status, reference: reference.to_h, error_info: error_info.map(&:to_h) }.delete_if { |k, v| v.nil? || v.empty? } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
money_s3-0.3.0 | lib/money_s3/message_type.rb |