Class: CognitiveVision::Adult
- Inherits:
-
Object
- Object
- CognitiveVision::Adult
- Defined in:
- lib/cognitive_vision/adult.rb
Instance Attribute Summary collapse
-
#adult_score ⇒ Object
readonly
Returns the value of attribute adult_score.
-
#racy_score ⇒ Object
readonly
Returns the value of attribute racy_score.
Instance Method Summary collapse
- #adult_content? ⇒ Boolean
-
#initialize(options = {}) ⇒ Adult
constructor
A new instance of Adult.
- #racy_content? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Adult
Returns a new instance of Adult.
5 6 7 8 9 10 |
# File 'lib/cognitive_vision/adult.rb', line 5 def initialize( = {}) @adult_content = .fetch(:adult_content) @adult_score = .fetch(:adult_score) @racy_content = .fetch(:racy_content) @racy_score = .fetch(:racy_score) end |
Instance Attribute Details
#adult_score ⇒ Object (readonly)
Returns the value of attribute adult_score.
3 4 5 |
# File 'lib/cognitive_vision/adult.rb', line 3 def adult_score @adult_score end |
#racy_score ⇒ Object (readonly)
Returns the value of attribute racy_score.
3 4 5 |
# File 'lib/cognitive_vision/adult.rb', line 3 def racy_score @racy_score end |
Instance Method Details
#adult_content? ⇒ Boolean
12 13 14 |
# File 'lib/cognitive_vision/adult.rb', line 12 def adult_content? @adult_content end |
#racy_content? ⇒ Boolean
16 17 18 |
# File 'lib/cognitive_vision/adult.rb', line 16 def racy_content? @racy_content end |