Class: ShutterstockRuby::Images

Inherits:
Object
  • Object
show all
Extended by:
Connections
Defined in:
lib/shutterstock-ruby/images.rb

Overview

A class to hold all images related code.

Class Method Summary collapse

Methods included from Connections

get, post

Class Method Details

.search(query, options = {}) ⇒ Object



6
7
8
# File 'lib/shutterstock-ruby/images.rb', line 6

def self.search(query, options = {})
  JSON.parse(self.get('/images/search', { query: query }.merge(options)))
end