Class: Apkstats::Entity::ApkInfo
- Inherits:
-
Object
- Object
- Apkstats::Entity::ApkInfo
- Defined in:
- lib/apkstats/entity/apk_info.rb
Constant Summary collapse
- KEYS =
%i( file_size download_size required_features non_required_features permissions min_sdk target_sdk method_reference_count dex_count ).freeze
Instance Attribute Summary collapse
-
#dex_count ⇒ Object
Integer.
-
#download_size ⇒ Object
Integer.
-
#file_size ⇒ Object
Integer.
-
#method_reference_count ⇒ Object
Integer.
-
#min_sdk ⇒ Object
String.
-
#non_required_features ⇒ Object
Array<String>.
-
#permissions ⇒ Object
Array<String>.
-
#required_features ⇒ Object
Array<String>.
-
#target_sdk ⇒ Object
String.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(command, apk_filepath) ⇒ ApkInfo
constructor
A new instance of ApkInfo.
- #to_h ⇒ Object
Constructor Details
Instance Attribute Details
#dex_count ⇒ Object
Integer
18 19 20 |
# File 'lib/apkstats/entity/apk_info.rb', line 18 def dex_count @dex_count end |
#download_size ⇒ Object
Integer
18 19 20 |
# File 'lib/apkstats/entity/apk_info.rb', line 18 def download_size @download_size end |
#file_size ⇒ Object
Integer
18 19 20 |
# File 'lib/apkstats/entity/apk_info.rb', line 18 def file_size @file_size end |
#method_reference_count ⇒ Object
Integer
18 19 20 |
# File 'lib/apkstats/entity/apk_info.rb', line 18 def method_reference_count @method_reference_count end |
#min_sdk ⇒ Object
String
21 22 23 |
# File 'lib/apkstats/entity/apk_info.rb', line 21 def min_sdk @min_sdk end |
#non_required_features ⇒ Object
Array<String>
24 25 26 |
# File 'lib/apkstats/entity/apk_info.rb', line 24 def non_required_features @non_required_features end |
#permissions ⇒ Object
Array<String>
24 25 26 |
# File 'lib/apkstats/entity/apk_info.rb', line 24 def @permissions end |
#required_features ⇒ Object
Array<String>
24 25 26 |
# File 'lib/apkstats/entity/apk_info.rb', line 24 def required_features @required_features end |
#target_sdk ⇒ Object
String
21 22 23 |
# File 'lib/apkstats/entity/apk_info.rb', line 21 def target_sdk @target_sdk end |
Instance Method Details
#[](key) ⇒ Object
32 33 34 |
# File 'lib/apkstats/entity/apk_info.rb', line 32 def [](key) send(key) end |
#to_h ⇒ Object
36 37 38 39 40 |
# File 'lib/apkstats/entity/apk_info.rb', line 36 def to_h KEYS.each_with_object({}) do |key, acc| acc[key] = self[key] end end |