Sha256: a545ce9727b35500a8d4dde5a2ad2ff2b7424d13cc6d0df4ce8a4e35fb16a0d7

Contents?: true

Size: 246 Bytes

Versions: 27

Compression:

Stored size: 246 Bytes

Contents

module Castronaut
  module Models
    
    module Consumeable
      
      def consumed?
        !consumed_at.nil?
      end
      
      def consume!
        self.consumed_at = Time.now
        self.save!
      end
      
    end
    
  end
end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
relevance-castronaut-0.5.4 lib/castronaut/models/consumeable.rb
relevance-castronaut-0.6.0 lib/castronaut/models/consumeable.rb
relevance-castronaut-0.6.1 lib/castronaut/models/consumeable.rb
relevance-castronaut-0.7.4 lib/castronaut/models/consumeable.rb
relevance-castronaut-0.7.5 lib/castronaut/models/consumeable.rb
nbudin-castronaut-0.7.5 lib/castronaut/models/consumeable.rb
factorylabs-castronaut-0.7.5 lib/castronaut/models/consumeable.rb