Class: Vx::Builder::BuildConfiguration::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/vx/builder/build_configuration/cache.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(new_cache) ⇒ Cache

Returns a new instance of Cache.



8
9
10
11
# File 'lib/vx/builder/build_configuration/cache.rb', line 8

def initialize(new_cache)
  normalize_attributes(new_cache)
  expand_directories!
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



6
7
8
# File 'lib/vx/builder/build_configuration/cache.rb', line 6

def attributes
  @attributes
end

Instance Method Details

#directoriesObject



13
14
15
# File 'lib/vx/builder/build_configuration/cache.rb', line 13

def directories
  @attributes["directories"]
end

#enabled?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/vx/builder/build_configuration/cache.rb', line 17

def enabled?
  @attributes["enabled"]
end