Module: Builderator::Control::Data
- Defined in:
- lib/builderator/control/data.rb,
lib/builderator/control/data/image.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Image
Class Method Summary collapse
Class Method Details
.image(query = {}) ⇒ Object
10 11 12 |
# File 'lib/builderator/control/data/image.rb', line 10 def self.image(query = {}) Image.search(query) end |
.lookup(source, query) ⇒ Object
7 8 9 10 11 |
# File 'lib/builderator/control/data.rb', line 7 def self.lookup(source, query) fail "#{ source } is not a valid data type!" unless respond_to?(source) send(source, query) end |