Class: Picguard::Configuration
- Inherits:
-
Object
- Object
- Picguard::Configuration
- Defined in:
- lib/configuration.rb
Instance Attribute Summary collapse
-
#google_api_key ⇒ Object
Returns the value of attribute google_api_key.
-
#threshold_adult ⇒ Object
Returns the value of attribute threshold_adult.
-
#threshold_face ⇒ Object
Returns the value of attribute threshold_face.
-
#threshold_violence ⇒ Object
Returns the value of attribute threshold_violence.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/configuration.rb', line 5 def initialize @threshold_adult = "POSSIBLE" @threshold_violence = "POSSIBLE" @threshold_face = 0.7 end |
Instance Attribute Details
#google_api_key ⇒ Object
Returns the value of attribute google_api_key.
3 4 5 |
# File 'lib/configuration.rb', line 3 def google_api_key @google_api_key end |
#threshold_adult ⇒ Object
Returns the value of attribute threshold_adult.
3 4 5 |
# File 'lib/configuration.rb', line 3 def threshold_adult @threshold_adult end |
#threshold_face ⇒ Object
Returns the value of attribute threshold_face.
3 4 5 |
# File 'lib/configuration.rb', line 3 def threshold_face @threshold_face end |
#threshold_violence ⇒ Object
Returns the value of attribute threshold_violence.
3 4 5 |
# File 'lib/configuration.rb', line 3 def threshold_violence @threshold_violence end |