Class: KodiClient::Types::Application::Version
- Inherits:
-
Object
- Object
- KodiClient::Types::Application::Version
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/application/version_type.rb
Overview
represent application properties version
Instance Attribute Summary collapse
-
#major ⇒ Object
readonly
Returns the value of attribute major.
-
#minor ⇒ Object
readonly
Returns the value of attribute minor.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(major, minor, revision, tag) ⇒ Version
constructor
A new instance of Version.
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
permalink #initialize(major, minor, revision, tag) ⇒ Version
Returns a new instance of Version.
13 14 15 16 17 18 |
# File 'lib/kodi_client/types/application/version_type.rb', line 13 def initialize(major, minor, revision, tag) @major = major @minor = minor @revision = revision @tag = tag end |
Instance Attribute Details
permalink #major ⇒ Object (readonly)
Returns the value of attribute major.
11 12 13 |
# File 'lib/kodi_client/types/application/version_type.rb', line 11 def major @major end |
permalink #minor ⇒ Object (readonly)
Returns the value of attribute minor.
11 12 13 |
# File 'lib/kodi_client/types/application/version_type.rb', line 11 def minor @minor end |
permalink #revision ⇒ Object (readonly)
Returns the value of attribute revision.
11 12 13 |
# File 'lib/kodi_client/types/application/version_type.rb', line 11 def revision @revision end |
permalink #tag ⇒ Object (readonly)
Returns the value of attribute tag.
11 12 13 |
# File 'lib/kodi_client/types/application/version_type.rb', line 11 def tag @tag end |