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