Class: KCommercial::Resources::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/KCommercialPipeline/core/resource/source/asset.rb

Direct Known Subclasses

ArrayHashAsset, HashAsset, StringAsset

Defined Under Namespace

Classes: TraitRow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, root_path) ⇒ Asset

Returns a new instance of Asset.



27
28
29
30
31
32
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 27

def initialize(name, root_path)
  @name = name
  @root_path = root_path
  @valid = false
  decode!
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



25
26
27
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 25

def name
  @name
end

#root_pathPathname (readonly)

Returns:



16
17
18
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 16

def root_path
  @root_path
end

#trait_rowsArray(TraitRow) (readonly)

Returns:



23
24
25
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 23

def trait_rows
  @trait_rows
end

#validBoolean (readonly)

This asset is valid or not

Returns:

  • (Boolean)


20
21
22
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 20

def valid
  @valid
end