Class: Klenod::Runtime::AssetSpec
- Inherits:
-
Data
- Object
- Data
- Klenod::Runtime::AssetSpec
- Defined in:
- lib/klenod/runtime/bundle.rb
Instance Attribute Summary collapse
-
#content_hash ⇒ Object
readonly
Returns the value of attribute content_hash.
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#logical_name ⇒ Object
readonly
Returns the value of attribute logical_name.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(logical_name = nil, content_hash = nil, output_path = nil, content_type = nil, metadata = nil, url = nil, **keywords) ⇒ AssetSpec
constructor
A new instance of AssetSpec.
Constructor Details
#initialize(logical_name = nil, content_hash = nil, output_path = nil, content_type = nil, metadata = nil, url = nil, **keywords) ⇒ AssetSpec
Returns a new instance of AssetSpec.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/klenod/runtime/bundle.rb', line 15 def initialize(logical_name = nil, content_hash = nil, output_path = nil, content_type = nil, = nil, url = nil, **keywords) logical_name = keywords.fetch(:logical_name, logical_name) content_hash = keywords.fetch(:content_hash, content_hash) output_path = keywords.fetch(:output_path, output_path) content_type = keywords.fetch(:content_type, content_type) = keywords.fetch(:metadata, ) url = keywords.fetch(:url, url) url ||= output_path super(logical_name:, content_hash:, output_path:, content_type:, metadata:, url:) end |
Instance Attribute Details
#content_hash ⇒ Object (readonly)
Returns the value of attribute content_hash
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def content_hash @content_hash end |
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def content_type @content_type end |
#logical_name ⇒ Object (readonly)
Returns the value of attribute logical_name
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def logical_name @logical_name end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def @metadata end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def output_path @output_path end |
#url ⇒ Object (readonly)
Returns the value of attribute url
13 14 15 |
# File 'lib/klenod/runtime/bundle.rb', line 13 def url @url end |