class Tmdb::Collection

Included Modules

Defined in:

collection.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tmdb::ImageUrls

backdrop_url(size : String = "original") : String backdrop_url

Instance methods inherited from module Tmdb::PosterUrls

poster_url(size : String = "original") : String poster_url

Constructor Detail

def self.detail(id : Int64, language : String | Nil = nil) : Collection #

Get collection details by id.


[View source]
def self.new(id : Int64, name : String, poster_path : Nil | String, backdrop_path : Nil | String) #

[View source]
def self.new(data : JSON::Any) #

[View source]

Instance Method Detail

def backdrop_path : String | Nil #

Path to default backdrop image


[View source]
def backdrops(language : String | Nil = nil) : Array(Backdrop) #

Get the backdrop images for a collection by id.


[View source]
def id : Int64 #

Unique ID of the collection


[View source]
def images(language : String | Nil = nil) : Array(Backdrop | Poster) #

Get the images for a collection by id.


[View source]
def name : String #

Name of the collection


[View source]
def overview : String #

Briefly description of the collection


[View source]
def parts : Array(MovieResult) #

Array of movies which forms part of the collection


[View source]
def poster_path : String | Nil #

Path to default poster image


[View source]
def posters(language : String | Nil = nil) : Array(Poster) #

Get the poster images for a collection by id.


[View source]
def translations(language : String | Nil = nil) : Array(Translation) #

Get the list translations for a collection by id.


[View source]