Sha256: c29dba5987a29cd5b8890806f35b67492abd1f9a12afa3909c0ec7b1abbbfa97

Contents?: true

Size: 915 Bytes

Versions: 1

Compression:

Stored size: 915 Bytes

Contents

# frozen_string_literal: true

require_relative '../helper/json_converter'
class VariantModel < JSONConverter
  attr_reader :variant, :supported_variant_descriptors, :app_on_demand_resources_size, :app_size,
              :on_demand_resources_size

  PARSING_KEYS = {
    variant: 'Variant: ',
    supported_variant_descriptors: 'Supported variant descriptors: ',
    app_on_demand_resources_size: 'App + On Demand Resources size: ',
    app_size: 'App size: ',
    on_demand_resources_size: 'On Demand Resources size: '
  }.freeze

  def initialize(variant, supported_variant_descriptors, app_on_demand_resources_size, app_size, on_demand_resources_size)
    super()
    @variant = variant
    @supported_variant_descriptors = supported_variant_descriptors
    @app_on_demand_resources_size = app_on_demand_resources_size
    @app_size = app_size
    @on_demand_resources_size = on_demand_resources_size
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
danger-app_size_report-0.0.3 lib/converter/models/variant_model.rb