Sha256: 413a912b2677df72cb023898cd4c052f3f55fec9b2f5256ebe4d4472cd5e8d1e
Contents?: true
Size: 524 Bytes
Versions: 38
Compression:
Stored size: 524 Bytes
Contents
module EffectiveOrders class AppCheckoutService def self.call(order:) new(order).tap(&:call) end attr_reader :order def initialize(order) @order = order end def call raise NotImplementedError, "overwrite the `call` instance method in #{self.class}" end def success? raise NotImplementedError, "overwrite the `success?` instance method in #{self.class}" end # A Hash or easily serializable object like a String def payment_details end end end
Version data entries
38 entries across 38 versions & 1 rubygems