Class: KodiClient::Types::Player::PlayerPositionTime
- Inherits:
-
Object
- Object
- KodiClient::Types::Player::PlayerPositionTime
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/player/player_position_time_type.rb
Overview
Player.Position.Time kodi.wiki/view/JSON-RPC_API/v12#Player.Position.Time
Instance Attribute Summary collapse
-
#hours ⇒ Object
readonly
Returns the value of attribute hours.
-
#milliseconds ⇒ Object
readonly
Returns the value of attribute milliseconds.
-
#minutes ⇒ Object
readonly
Returns the value of attribute minutes.
-
#seconds ⇒ Object
readonly
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize(hours, minutes, seconds, milliseconds) ⇒ PlayerPositionTime
constructor
A new instance of PlayerPositionTime.
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(hours, minutes, seconds, milliseconds) ⇒ PlayerPositionTime
Returns a new instance of PlayerPositionTime.
13 14 15 16 17 18 |
# File 'lib/kodi_client/types/player/player_position_time_type.rb', line 13 def initialize(hours, minutes, seconds, milliseconds) @hours = hours @minutes = minutes @seconds = seconds @milliseconds = milliseconds end |
Instance Attribute Details
#hours ⇒ Object (readonly)
Returns the value of attribute hours.
11 12 13 |
# File 'lib/kodi_client/types/player/player_position_time_type.rb', line 11 def hours @hours end |
#milliseconds ⇒ Object (readonly)
Returns the value of attribute milliseconds.
11 12 13 |
# File 'lib/kodi_client/types/player/player_position_time_type.rb', line 11 def milliseconds @milliseconds end |
#minutes ⇒ Object (readonly)
Returns the value of attribute minutes.
11 12 13 |
# File 'lib/kodi_client/types/player/player_position_time_type.rb', line 11 def minutes @minutes end |
#seconds ⇒ Object (readonly)
Returns the value of attribute seconds.
11 12 13 |
# File 'lib/kodi_client/types/player/player_position_time_type.rb', line 11 def seconds @seconds end |