class Tmdb::Company
- Tmdb::Company
- Reference
- Object
Included Modules
Defined in:
company.crConstructors
-
.detail(id : Int64) : Company
Get a companies details by id.
- .new(id : Int64, name : String, logo_path : Nil | String, origin_country : Nil | String)
- .new(data : JSON::Any)
Instance Method Summary
-
#alternative_names : Array(String)
Get the alternative names of a company.
- #description : String
- #headquarters : String
- #homepage : String
- #id : Int64
-
#images : Array(Logo)
Get a company logos.
- #logo_path : String | Nil
-
#logos : Array(Logo)
See
#images
- #name : String
- #origin_country : String | Nil
- #parent_company : Company | Nil
Instance methods inherited from module Tmdb::LogoUrls
logo_url(size : String = "original") : String
logo_url
Constructor Detail
def self.new(id : Int64, name : String, logo_path : Nil | String, origin_country : Nil | String)
#
Instance Method Detail
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.