Sha256: 2bd7e0c70d7ede761f75001c4118f2ed44bc8298dc8e2812e6d83a602d1d5cdc

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

# typed: strict
# frozen_string_literal: true

module EML
  module UK
    module Responses
      module Card
        class Transaction < ::EML::UK::Response
          extend T::Sig

          field :count

          sig { returns(T::Array[::EML::UK::Models::Transaction]) }
          def transactions
            @transactions ||= body["transactions"].
              each_with_object([]) do |transaction, array|
                array << ::EML::UK::Models::Transaction.new(transaction)
              end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eml-2.0.0 lib/eml/uk/responses/card/transaction.rb