Class: Picguard::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

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_adultObject

Returns the value of attribute threshold_adult.



3
4
5
# File 'lib/configuration.rb', line 3

def threshold_adult
  @threshold_adult
end

#threshold_faceObject

Returns the value of attribute threshold_face.



3
4
5
# File 'lib/configuration.rb', line 3

def threshold_face
  @threshold_face
end

#threshold_violenceObject

Returns the value of attribute threshold_violence.



3
4
5
# File 'lib/configuration.rb', line 3

def threshold_violence
  @threshold_violence
end