class Giphy::SearchParam

Overview

SearchParam contains additional parameters that can be used when calling Giphy::Client#search.

Defined in:

params.cr

Constructors

Instance methods inherited from class Giphy::Param

to_hash : Hash(String, String) to_hash

Constructor Detail

def self.new(limit = 25, offset = 0, rating = "", lang = "", random_id = "") #

Creates a new SearchParam with the specified limit, offset, rating, lang and random_id.

An ArgumentError is raised if:

  • limit is < 1
  • offset is < 0 or >= 5000

[View source]