Class: Services::Builders::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/services/builders/feature.rb

Instance Method Summary collapse

Constructor Details

#initialize(type, max_results = '1') ⇒ Feature

Returns a new instance of Feature.



6
7
8
9
# File 'lib/services/builders/feature.rb', line 6

def initialize(type, max_results = '1')
  @type = type
  @max_results = max_results
end

Instance Method Details

#callObject



11
12
13
# File 'lib/services/builders/feature.rb', line 11

def call
  Google::Apis::VisionV1::Feature.new(max_results: @max_results, type: @type)
end