Class: KodiClient::Types::Player::VideoStream

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable
Defined in:
lib/kodi_client/types/player/video_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(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

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

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

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

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

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

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

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

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