class Stremio::Addon::DevKit::Manifest
- Stremio::Addon::DevKit::Manifest
- Reference
- Object
Overview
A Manifest consists of a collection of ResourceTypes Source: https://github.com/Stremio/stremio-addon-sdk/blob/master/docs/api/responses/manifest.md
Included Modules
- JSON::Serializable
- JSON::Serializable::Fake
Defined in:
stremio-addon-devkit/manifest.crConstructors
- .new(id : String, name : String, description : String, version : String, logo : Nil | String = nil)
- .new(pull : JSON::PullParser)
Class Method Summary
-
.build(*args, **named_args, &)
A static function call to inline the complete construction of a manifest object.
Instance Method Summary
- #<<(x : CatalogMovie) : self
- #catalog_movies : Array(Stremio::Addon::DevKit::CatalogMovie)
- #catalog_movies=(catalog_movies : Array(Stremio::Addon::DevKit::CatalogMovie))
- #catalogs(json : JSON::Builder) : Nil
-
#description : String
#description
: required - string, human readable description - #each_catalog(&)
-
#id : String
#id
: required - string, identifier, dot-separated, e.g. - #idPrefixes(json : JSON::Builder) : Nil
-
#logo : String | Nil
#logo
: optional - string, a url to a small logo to use in stremio (ie: https://www.stremio.com/website/stremio-logo-small.png) -
#name : String
#name
: required - string, human readable name - #resources(json : JSON::Builder) : Nil
-
#resources : Array(ManifestResource)
Resource
- #types(json : JSON::Builder) : Nil
- #types : Set(ContentType)
-
#version : String
#version
: required - string, semantic version of the addon
Constructor Detail
def self.new(id : String, name : String, description : String, version : String, logo : Nil | String = nil)
#
Class Method Detail
def self.build(*args, **named_args, &)
#
A static function call to inline the complete construction of a manifest object.
Example:
manifest = Manifest(ContentType).build(
id: "com.stremio.addon.example",
name: "DemoAddon",
description: "An example stremio addon",
version: "0.0.1") do |conf|
conf << CatalogMovie.new(ContentType::Movie, "movie4u", "Movies for you")
end
TODO Should this be moved into the macro? As a method on .new()?