Class: KodiClient::Types::Media::MediaArtwork
- Inherits:
-
Object
- Object
- KodiClient::Types::Media::MediaArtwork
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/media/media_artwork_type.rb
Overview
Media.Artwork kodi.wiki/view/JSON-RPC_API/v12#Media.Artwork
Instance Attribute Summary collapse
-
#banner ⇒ Object
readonly
Returns the value of attribute banner.
-
#fan_art ⇒ Object
readonly
Returns the value of attribute fan_art.
-
#poster ⇒ Object
readonly
Returns the value of attribute poster.
-
#thumb ⇒ Object
readonly
Returns the value of attribute thumb.
Instance Method Summary collapse
-
#initialize(banner, fan_art, poster, thumb) ⇒ MediaArtwork
constructor
A new instance of MediaArtwork.
- #to_h ⇒ Object
Methods included from Extensions::Creatable
arr_to_mapping, attr_accessor, attr_reader, attr_writer, create, create_list, extract_field_from_hash, fields_to_map, hash_to_arr, type_mapping
Methods included from Extensions::Comparable
Constructor Details
#initialize(banner, fan_art, poster, thumb) ⇒ MediaArtwork
Returns a new instance of MediaArtwork.
13 14 15 16 17 18 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 13 def initialize(, fan_art, poster, thumb) @banner = @fan_art = fan_art @poster = poster @thumb = thumb end |
Instance Attribute Details
#banner ⇒ Object (readonly)
Returns the value of attribute banner.
11 12 13 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 11 def @banner end |
#fan_art ⇒ Object (readonly)
Returns the value of attribute fan_art.
11 12 13 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 11 def fan_art @fan_art end |
#poster ⇒ Object (readonly)
Returns the value of attribute poster.
11 12 13 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 11 def poster @poster end |
#thumb ⇒ Object (readonly)
Returns the value of attribute thumb.
11 12 13 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 11 def thumb @thumb end |
Instance Method Details
#to_h ⇒ Object
20 21 22 |
# File 'lib/kodi_client/types/media/media_artwork_type.rb', line 20 def to_h { 'banner' => @banner, 'fanart' => @fan_art, 'poster' => @poster, 'thumb' => @thumb } end |