Sha256: 706adfc0820fbad059b665a6908cd4edc5f243d213a65394ab29ae3fd2925519
Contents?: true
Size: 307 Bytes
Versions: 35
Compression:
Stored size: 307 Bytes
Contents
class Return attr_accessor :order, :items def initialize(order, items) self.order = order self.items = items end def submit @success = items.map(&:return!).reduce(&:&) rescue Transitions::InvalidTransition @success = false end def successful? @success || false end end
Version data entries
35 entries across 35 versions & 1 rubygems