Sha256: 3d65934dafe12e581f473669838b270c81adc658113c3b36c9e1b00fe197ce18

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 Bytes

Contents

module ResponsiveService
  class ResponsiveService
    attr_reader :responder_factory

    def initialize(responder_factory=ResponsiveService::Responder)
      @responder_factory = responder_factory
    end

    def call(&block)
      yield responder_factory.new(:unimplemented, "A ResponsiveService should implement the call method.\nThe call method should perform the relevant work of the service and yield a ResponsiveService::Responder object.\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
responsive_service-0.0.2 lib/responsive_service/responsive_service.rb