Class: KodiClient::Types::Player::VideoStream
- Inherits:
-
Object
- Object
- KodiClient::Types::Player::VideoStream
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/player/video_stream_type.rb
Overview
Player.Video.Stream kodi.wiki/view/JSON-RPC_API/v12#Player.Video.Stream
Instance Attribute Summary collapse
-
#aspect ⇒ Object
readonly
Returns the value of attribute aspect.
-
#codec ⇒ Object
readonly
Returns the value of attribute codec.
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(codec, height, index, language, name, width, duration, aspect) ⇒ VideoStream
constructor
A new instance of VideoStream.
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(codec, height, index, language, name, width, duration, aspect) ⇒ VideoStream
Returns a new instance of VideoStream.
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 13 def initialize(codec, height, index, language, name, width, duration, aspect) @codec = codec @height = height @index = index @language = language @name = name @width = width @duration = duration @aspect = aspect end |
Instance Attribute Details
#aspect ⇒ Object (readonly)
Returns the value of attribute aspect.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def aspect @aspect end |
#codec ⇒ Object (readonly)
Returns the value of attribute codec.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def codec @codec end |
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def duration @duration end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def height @height end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def index @index end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def name @name end |
#width ⇒ Object (readonly)
Returns the value of attribute width.
11 12 13 |
# File 'lib/kodi_client/types/player/video_stream_type.rb', line 11 def width @width end |