Class: CognitiveVision::Adult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @adult_content = options.fetch(:adult_content)
  @adult_score   = options.fetch(:adult_score)
  @racy_content  = options.fetch(:racy_content)
  @racy_score    = options.fetch(:racy_score)
end

Instance Attribute Details

#adult_scoreObject (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_scoreObject (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

Returns:

  • (Boolean)


12
13
14
# File 'lib/cognitive_vision/adult.rb', line 12

def adult_content?
  @adult_content
end

#racy_content?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/cognitive_vision/adult.rb', line 16

def racy_content?
  @racy_content
end