Class: Tebako::SingleFileBundle::Inspection

Inherits:
Struct
  • Object
show all
Defined in:
lib/tebako/single_file_bundle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicationObject

Returns the value of attribute application

Returns:

  • (Object)

    the current value of application



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def application
  @application
end

#application_sha256Object

Returns the value of attribute application_sha256

Returns:

  • (Object)

    the current value of application_sha256



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def application_sha256
  @application_sha256
end

#application_sizeObject

Returns the value of attribute application_size

Returns:

  • (Object)

    the current value of application_size



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def application_size
  @application_size
end

#byte_sizeObject

Returns the value of attribute byte_size

Returns:

  • (Object)

    the current value of byte_size



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def byte_size
  @byte_size
end

#containerObject

Returns the value of attribute container

Returns:

  • (Object)

    the current value of container



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def container
  @container
end

#formatObject

Returns the value of attribute format

Returns:

  • (Object)

    the current value of format



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def format
  @format
end

#major_versionObject

Returns the value of attribute major_version

Returns:

  • (Object)

    the current value of major_version



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def major_version
  @major_version
end

#minor_versionObject

Returns the value of attribute minor_version

Returns:

  • (Object)

    the current value of minor_version



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def minor_version
  @minor_version
end

#runtime_sizeObject

Returns the value of attribute runtime_size

Returns:

  • (Object)

    the current value of runtime_size



29
30
31
# File 'lib/tebako/single_file_bundle.rb', line 29

def runtime_size
  @runtime_size
end

Instance Method Details

#to_hObject



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/tebako/single_file_bundle.rb', line 31

def to_h
  {
    "format" => format,
    "container" => container,
    "major_version" => major_version,
    "minor_version" => minor_version,
    "runtime_size" => runtime_size,
    "application_size" => application_size,
    "application_sha256" => application_sha256,
    "size" => byte_size,
    "application" => application.to_h
  }
end