Class: Esbuild::BuildResult::Metafile::Input

Inherits:
Struct
  • Object
show all
Defined in:
lib/esbuild/build_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ Input

Returns a new instance of Input.



24
25
26
# File 'lib/esbuild/build_result.rb', line 24

def initialize(hash)
  super(hash["bytes"], hash["imports"])
end

Instance Attribute Details

#bytesObject

Returns the value of attribute bytes

Returns:

  • (Object)

    the current value of bytes



23
24
25
# File 'lib/esbuild/build_result.rb', line 23

def bytes
  @bytes
end

#importsObject

Returns the value of attribute imports

Returns:

  • (Object)

    the current value of imports



23
24
25
# File 'lib/esbuild/build_result.rb', line 23

def imports
  @imports
end