Class: KodiClient::Types::Video::VideoResume
- Inherits:
-
Object
- Object
- KodiClient::Types::Video::VideoResume
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/video/video_resume_type.rb
Overview
Video.Resume kodi.wiki/view/JSON-RPC_API/v12#Video.Resume
Instance Attribute Summary collapse
-
#position ⇒ Object
readonly
Returns the value of attribute position.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
-
#initialize(position, total) ⇒ VideoResume
constructor
A new instance of VideoResume.
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(position, total) ⇒ VideoResume
Returns a new instance of VideoResume.
13 14 15 16 |
# File 'lib/kodi_client/types/video/video_resume_type.rb', line 13 def initialize(position, total) @position = position @total = total end |
Instance Attribute Details
#position ⇒ Object (readonly)
Returns the value of attribute position.
11 12 13 |
# File 'lib/kodi_client/types/video/video_resume_type.rb', line 11 def position @position end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
11 12 13 |
# File 'lib/kodi_client/types/video/video_resume_type.rb', line 11 def total @total end |