class Tmdb::Discover::QueryBuilder

Defined in:

discover.cr

Instance Method Summary

Instance Method Detail

def air_date_gte(air_date_gte : Time) #

Filter and only include TV shows that have a air date (by looking at all episodes) that is greater or equal to the specified value.


[View source]
def air_date_lte(air_date_lte : Time) #

Filter and only include TV shows that have a air date (by looking at all episodes) that is less than or equal to the specified value.


[View source]
def certification(certification : String) #

Filter results with a valid certification from the '#certification_country' field.


[View source]
def certification_country(certification_country : String) #

Used in conjunction with the #certification filter, use this to specify a country with a valid certification.


[View source]
def certification_gte(certification_gte : String) #

Filter and only include movies that have a certification that is greater than or equal to the specified value.


[View source]
def certification_lte(certification_lte : String) #

Filter and only include movies that have a certification that is less than or equal to the specified value.


[View source]
def first_air_date_gte(first_air_date_gte : Time) #

Filter and only include TV shows that have a original air date that is greater or equal to the specified value. Can be used in conjunction with the #include_null_first_air_dates filter if you want to include items with no air date.


[View source]
def first_air_date_lte(first_air_date_lte : Time) #

Filter and only include TV shows that have a original air date that is less or equal to the specified value. Can be used in conjunction with the #include_null_first_air_dates filter if you want to include items with no air date.


[View source]
def first_air_date_year(first_air_date_year : Int32) #

Filter and only include TV shows that have a original air date year that equal to the specified value. Can be used in conjunction with the #include_null_first_air_dates filter if you want to include items with no air date.


[View source]
def include_adult(include_adult : Bool) #

A filter and include or exclude adult movies.


[View source]
def include_null_first_air_dates(include_null_first_air_dates : Bool) #

Use this filter to include TV shows that don't have an air date while using any of the first_air_date filters.


[View source]
def include_video(include_video : Bool) #

A filter to include or exclude videos.


[View source]
def language(language : String) #

Specify a language to query translatable fields with.


[View source]
def primary_release_date_gte(primary_release_date_gte : Time) #

Filter and only include movies that have a primary release date that is greater or equal to the specified value.


[View source]
def primary_release_date_lte(primary_release_date_lte : Time) #

Filter and only include movies that have a primary release date that is less or equal to the specified value.


[View source]
def primary_release_year(primary_release_year : Int32) #

A filter to limit the results to a specific primary release year.


[View source]
def region(value : String) #

Specify a ISO 3166-1 code to filter release dates.


[View source]
def release_date_gte(release_date_gte : Time) #

Filter and only include movies that have a release date that is greater or equal to the specified value.


[View source]
def release_date_lte(release_date_lte : Time) #

Filter and only include movies that have a release date that is less or equal to the specified value.


[View source]
def screened_theatrically(screened_theatrically : Bool) #

Filter results to include items that have been screened theatrically.


[View source]
def sort_by(sort_by : SortType) #

Sort option.


[View source]
def timezone(timezone : String) #

Used in conjunction with the air_date.gte/lte filter to calculate the proper UTC offset.

default: America/New_York


[View source]
def to_filter : FilterFactory::Filter #

[View source]
def vote_average_gte(vote_average_gte : Float64) #

Filter and only include movies that have a rating count that is greater or equal to the specified value.


[View source]
def vote_count_gte(vote_count_gte : Int64) #

Filter and only include movies that have a vote count that is greater or equal to the specified value.


[View source]
def vote_count_lte(vote_count_lte : Int64) #

Filter and only include movies that have a vote count that is less or equal to the specified value.


[View source]
def watch_region(watch_region : String) #

An ISO 3166-1 code. Combine this filter with #with_watch_providers in order to filter your results by a specific watch provider in a specific region.


[View source]
def with_cast(cast : Int64) #

A comma separated list of person ID's. Only include movies that have one of the ID's added as an actor.


[View source]
def with_cast(cast : Array(Int64)) #

[View source]
def with_companies(company : Int32) #

A comma separated list of production company ID's. Only include movies that have one of the ID's added as a production company.


[View source]
def with_companies(companies : Array(Int32)) #

[View source]
def with_crew(crew : Int64) #

A comma separated list of person ID's. Only include movies that have one of the ID's added as a crew member.


[View source]
def with_crew(crew : Array(Int64)) #

[View source]
def with_genres(genre : Int32) #

Comma separated value of genre ids that you want to include in the results.


[View source]
def with_genres(genres : Array(Int32)) #

[View source]
def with_keywords(keyword : String) #

A comma separated list of keyword ID's. Only includes movies that have one of the ID's added as a keyword.


[View source]
def with_keywords(keywords : Array(String)) #

[View source]
def with_networks(network : String) #

Comma separated value of network ids that you want to include in the results.


[View source]
def with_networks(networks : Array(String)) #

[View source]
def with_original_language(with_original_language : String) #

Specify an ISO 639-1 string to filter results by their original language value.


[View source]
def with_people(person : Int64) #

A comma separated list of person ID's. Only include movies that have one of the ID's added as an actor or crew member.


[View source]
def with_people(persons : Array(Int64)) #

[View source]
def with_release_type(with_release_type : Int32) #

Specify a comma (AND) or pipe (OR) separated value to filter release types by. These release types map to the same values found on the movie release date method.


[View source]
def with_runtime_gte(with_runtime_gte : Int32) #

Filter and only include movies that have a runtime that is greater or equal to a value.


[View source]
def with_runtime_lte(with_runtime_lte : Int32) #

Filter and only include movies that have a runtime that is less or equal to a value.


[View source]
def with_watch_monetization_types(with_watch_monetization_types : MonetizationType) #

In combination with #watch_region, you can filter by monetization type.


[View source]
def with_watch_providers(watch_provider : String) #

A comma or pipe separated list of watch provider ID's. Combine this filter with #watch_region in order to filter your results by a specific watch provider in a specific region.


[View source]
def with_watch_providers(watch_providers : Array(String)) #

[View source]
def without_keywords(keywords : String) #

Exclude items with certain keywords. You can comma and pipe seperate these values to create an 'AND' or 'OR' logic.


[View source]
def year(year : Int32) #

A filter to limit the results to a specific year (looking at all release dates).


[View source]