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