Class: KodiClient::Types::System::PropertyValue
- Inherits:
-
Object
- Object
- KodiClient::Types::System::PropertyValue
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/system/property_value_type.rb
Overview
System.Property.Value kodi.wiki/view/JSON-RPC_API/v12#System.Property.Value
Instance Attribute Summary collapse
-
#can_hibernate ⇒ Object
readonly
Returns the value of attribute can_hibernate.
-
#can_reboot ⇒ Object
readonly
Returns the value of attribute can_reboot.
-
#can_shutdown ⇒ Object
readonly
Returns the value of attribute can_shutdown.
-
#can_suspend ⇒ Object
readonly
Returns the value of attribute can_suspend.
Instance Method Summary collapse
-
#initialize(can_hibernate, can_reboot, can_shutdown, can_suspend) ⇒ PropertyValue
constructor
A new instance of PropertyValue.
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(can_hibernate, can_reboot, can_shutdown, can_suspend) ⇒ PropertyValue
Returns a new instance of PropertyValue.
13 14 15 16 17 18 |
# File 'lib/kodi_client/types/system/property_value_type.rb', line 13 def initialize(can_hibernate, can_reboot, can_shutdown, can_suspend) @can_hibernate = can_hibernate @can_reboot = can_reboot @can_shutdown = can_shutdown @can_suspend = can_suspend end |
Instance Attribute Details
#can_hibernate ⇒ Object (readonly)
Returns the value of attribute can_hibernate.
11 12 13 |
# File 'lib/kodi_client/types/system/property_value_type.rb', line 11 def can_hibernate @can_hibernate end |
#can_reboot ⇒ Object (readonly)
Returns the value of attribute can_reboot.
11 12 13 |
# File 'lib/kodi_client/types/system/property_value_type.rb', line 11 def can_reboot @can_reboot end |
#can_shutdown ⇒ Object (readonly)
Returns the value of attribute can_shutdown.
11 12 13 |
# File 'lib/kodi_client/types/system/property_value_type.rb', line 11 def can_shutdown @can_shutdown end |
#can_suspend ⇒ Object (readonly)
Returns the value of attribute can_suspend.
11 12 13 |
# File 'lib/kodi_client/types/system/property_value_type.rb', line 11 def can_suspend @can_suspend end |