Class: KodiClient::Types::Player::AudioStream

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable
Defined in:
lib/kodi_client/types/player/audio_stream_type.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#==, #compare

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

#bitrateObject (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

#channelsObject (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

#codecObject (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

#indexObject (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_defaultObject (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_forcedObject (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_originalObject (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

#languageObject (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

#nameObject (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_rateObject (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