Class: KodiClient::Types::System::PropertyValue

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable
Defined in:
lib/kodi_client/types/system/property_value_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(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_hibernateObject (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_rebootObject (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_shutdownObject (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_suspendObject (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