Class: Imagga::BaseBuilder

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

Instance Method Summary collapse

Instance Method Details

#build_from(result) ⇒ Object



4
5
6
# File 'lib/imagga/result_builder.rb', line 4

def build_from(result)
  result[key].map { |o| result_class.new(o) }
end

#keyObject



8
# File 'lib/imagga/result_builder.rb', line 8

def key; self.class::KEY; end

#result_classObject



9
# File 'lib/imagga/result_builder.rb', line 9

def result_class; self.class::CLASS; end