Class: Imagga::BaseBuilder
- Inherits:
-
Object
- Object
- Imagga::BaseBuilder
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
|
#key ⇒ Object
8
|
# File 'lib/imagga/result_builder.rb', line 8
def key; self.class::KEY; end
|
#result_class ⇒ Object
9
|
# File 'lib/imagga/result_builder.rb', line 9
def result_class; self.class::CLASS; end
|