Class: KodiClient::Types::Player::PlayerViewMode

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

Overview

return value for Player.GetViewMode

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(nonlinear_stretch, pixel_ratio, vertical_shift, view_mode, zoom) ⇒ PlayerViewMode

Returns a new instance of PlayerViewMode.



13
14
15
16
17
18
19
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 13

def initialize(nonlinear_stretch, pixel_ratio, vertical_shift, view_mode, zoom)
  @nonlinear_stretch = nonlinear_stretch
  @pixel_ratio = pixel_ratio
  @vertical_shift = vertical_shift
  @view_mode = view_mode
  @zoom = zoom
end

Instance Attribute Details

#nonlinear_stretchObject (readonly)

Returns the value of attribute nonlinear_stretch.



11
12
13
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 11

def nonlinear_stretch
  @nonlinear_stretch
end

#pixel_ratioObject (readonly)

Returns the value of attribute pixel_ratio.



11
12
13
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 11

def pixel_ratio
  @pixel_ratio
end

#vertical_shiftObject (readonly)

Returns the value of attribute vertical_shift.



11
12
13
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 11

def vertical_shift
  @vertical_shift
end

#view_modeObject (readonly)

Returns the value of attribute view_mode.



11
12
13
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 11

def view_mode
  @view_mode
end

#zoomObject (readonly)

Returns the value of attribute zoom.



11
12
13
# File 'lib/kodi_client/types/player/player_view_mode_type.rb', line 11

def zoom
  @zoom
end