class Services::Builders::Image

Public Class Methods

new(image_path) click to toggle source
# File lib/services/builders/image.rb, line 6
def initialize(image_path)
  @image_path = image_path
end

Public Instance Methods

call() click to toggle source
# File lib/services/builders/image.rb, line 10
def call
  Google::Apis::VisionV1::Image.new(content: open(@image_path).to_a.join)
end