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