Class: Esbuild::BuildResult::Metafile
- Inherits:
-
Object
- Object
- Esbuild::BuildResult::Metafile
- Defined in:
- lib/esbuild/build_result.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#inputs ⇒ Object
readonly
Returns the value of attribute inputs.
-
#outputs ⇒ Object
readonly
Returns the value of attribute outputs.
Instance Method Summary collapse
-
#initialize(json) ⇒ Metafile
constructor
A new instance of Metafile.
Constructor Details
#initialize(json) ⇒ Metafile
Returns a new instance of Metafile.
45 46 47 48 49 |
# File 'lib/esbuild/build_result.rb', line 45 def initialize(json) hash = JSON.parse(json) @inputs = hash["inputs"].transform_values! { |v| Input.new(v) } @outputs = hash["outputs"].transform_values! { |v| Output.new(v) } end |
Instance Attribute Details
#inputs ⇒ Object (readonly)
Returns the value of attribute inputs.
42 43 44 |
# File 'lib/esbuild/build_result.rb', line 42 def inputs @inputs end |
#outputs ⇒ Object (readonly)
Returns the value of attribute outputs.
43 44 45 |
# File 'lib/esbuild/build_result.rb', line 43 def outputs @outputs end |