Class: Assets::Asset

Inherits:
Object
  • Object
show all
Includes:
Adamantium
Defined in:
lib/assets/asset.rb

Overview

Abstract base class for asset

Instance Method Summary collapse

Instance Method Details

#fresh_at?(time) ⇒ true, false

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if asset was fresh at specific point of time

Parameters:

  • time (Time)

Returns:

  • (true)

    if asset is fresh at time

  • (false)

    otherwise



19
20
21
# File 'lib/assets/asset.rb', line 19

def fresh_at?(time)
  time >= created_at
end