Sha256: 3b237c0d1cee496dd6483edd8b1426823694974b475956dd57f1036679228400

Contents?: true

Size: 739 Bytes

Versions: 4

Compression:

Stored size: 739 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Examples
    module Standard
      module V1
        class Cowsay
          module Services
            class Print
              include ConvenientService::Standard::V1::Config

              attr_reader :text, :out

              step Services::BuildCloud, in: :text, out: :cloud
              step Services::BuildCow, out: :cow
              step :result

              def initialize(text: "Hello World!", out: $stdout)
                @text = text
                @out = out
              end

              def result
                out.puts cloud + cow

                success
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.17.0 lib/convenient_service/examples/standard/v1/cowsay/services/print.rb
convenient_service-0.16.0 lib/convenient_service/examples/standard/v1/cowsay/services/print.rb
convenient_service-0.15.0 lib/convenient_service/examples/standard/v1/cowsay/services/print.rb
convenient_service-0.14.0 lib/convenient_service/examples/standard/v1/cowsay/services/print.rb