class Tmdb::Network

Included Modules

Defined in:

network.cr

Constructors

Instance Method Summary

Instance methods inherited from module Tmdb::LogoUrls

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

Constructor Detail

def self.detail(id : Int64) : Network #

Get the details of a network.


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

[View source]

Instance Method Detail

def alternative_names : Array(String) #

Get the alternative names of a network.


[View source]
def headquarters : String #

[View source]
def homepage : String #

[View source]
def id : Int64 #

[View source]
def images : Array(Logo) #

Get a company logos.

There are two image formats that are supported for companies, PNG's and SVG's. You can see which type the original file is by looking at the file_type field. We prefer SVG's as they are resolution independent and as such, the width and height are only there to reflect the original asset that was uploaded. An SVG can be scaled properly beyond those dimensions if you call them as a PNG.

For more information about how SVG's and PNG's can be used, take a read through.


[View source]
def logo_path : String | Nil #

[View source]
def logos : Array(Logo) #

See #images


[View source]
def name : String #

[View source]
def origin_country : String #

[View source]