Class: Privacy::Config
- Inherits:
-
Object
- Object
- Privacy::Config
- Defined in:
- lib/cocoapods-privacy/privacy/PrivacyConfig.rb
Class Method Summary collapse
Instance Method Summary collapse
- #api_template_url ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #source_black_list ⇒ Object
- #source_white_list ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
6 7 8 9 |
# File 'lib/cocoapods-privacy/privacy/PrivacyConfig.rb', line 6 def initialize() config_content = File.read(PrivacyUtils.cache_config_file) @json = JSON.parse(config_content) end |
Class Method Details
.instance ⇒ Object
23 24 25 |
# File 'lib/cocoapods-privacy/privacy/PrivacyConfig.rb', line 23 def self.instance @instance ||= new end |
Instance Method Details
#api_template_url ⇒ Object
11 12 13 |
# File 'lib/cocoapods-privacy/privacy/PrivacyConfig.rb', line 11 def api_template_url return @json['api.template.url'] || "" end |
#source_black_list ⇒ Object
15 16 17 |
# File 'lib/cocoapods-privacy/privacy/PrivacyConfig.rb', line 15 def source_black_list return @json['source.black.list'] || [] end |
#source_white_list ⇒ Object
19 20 21 |
# File 'lib/cocoapods-privacy/privacy/PrivacyConfig.rb', line 19 def source_white_list return @json['source.white.list'] || [] end |