Class: KCommercial::Resources::Asset
- Inherits:
-
Object
- Object
- KCommercial::Resources::Asset
- Defined in:
- lib/KCommercialPipeline/core/resource/source/asset.rb
Direct Known Subclasses
Defined Under Namespace
Classes: TraitRow
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
- #root_path ⇒ Pathname readonly
- #trait_rows ⇒ Array(TraitRow) readonly
-
#valid ⇒ Boolean
readonly
This asset is valid or not.
Instance Method Summary collapse
-
#initialize(name, root_path) ⇒ Asset
constructor
A new instance of Asset.
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
#name ⇒ Object (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_path ⇒ Pathname (readonly)
16 17 18 |
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 16 def root_path @root_path end |
#trait_rows ⇒ Array(TraitRow) (readonly)
23 24 25 |
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 23 def trait_rows @trait_rows end |
#valid ⇒ Boolean (readonly)
This asset is valid or not
20 21 22 |
# File 'lib/KCommercialPipeline/core/resource/source/asset.rb', line 20 def valid @valid end |