class Apkstats::Entity::ApkInfoDiff

Constants

KEYS

Attributes

base[R]
other[R]

Public Class Methods

new(base, other) click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 12
def initialize(base, other)
  @base = base
  @other = other
end

Public Instance Methods

dex_count() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 72
def dex_count
  # Integer
  @base[__method__].to_i - @other[__method__].to_i
end
download_size() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 28
def download_size
  # Integer
  @base[__method__].to_i - @other[__method__].to_i
end
file_size() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 23
def file_size
  # Integer
  @base[__method__].to_i - @other[__method__].to_i
end
method_reference_count() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 67
def method_reference_count
  # Integer
  @base[__method__].to_i - @other[__method__].to_i
end
min_sdk() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 57
def min_sdk
  # String
  [@base[__method__], @other[__method__]].uniq
end
non_required_features() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 41
def non_required_features
  # Features
  {
      new: (@base[__method__] - @other[__method__]).to_a,
      removed: (@other[__method__] - @base[__method__]).to_a,
  }
end
permissions() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 49
def permissions
  # Permissions
  {
      new: (@base[__method__] - @other[__method__]).to_a,
      removed: (@other[__method__] - @base[__method__]).to_a,
  }
end
required_features() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 33
def required_features
  # Features
  {
      new: (@base[__method__] - @other[__method__]).to_a,
      removed: (@other[__method__] - @base[__method__]).to_a,
  }
end
target_sdk() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 62
def target_sdk
  # String
  [@base[__method__], @other[__method__]].uniq
end
to_h() click to toggle source
# File lib/apkstats/entity/apk_info_diff.rb, line 17
def to_h
  KEYS.each_with_object({}) do |key, acc|
    acc[key] = self.send(key)
  end.compact
end