Class: Windoo::Capability

Inherits:
BaseClasses::Criterion show all
Includes:
Mixins::APICollection
Defined in:
lib/windoo/objects/capability.rb

Overview

The class for dealing with the capabilities of Patches in the Title Editor

A capability is one criterion, a group of which define which computers are capable of running, and this allowed to install, a Patch.

Constant Summary collapse

RSRC_PATH =

Constants

'capabilities'
CONTAINER_CLASS =
Windoo::Patch
JSON_ATTRIBUTES =

Attributes

{

  # @!attribute capabilityId
  # @return [Integer] The id number of this capability
  capabilityId: {
    class: :Integer,
    identifier: :primary,
    do_not_send: true,
    readonly: true
  },

  # @!attribute patchId
  # @return [Integer] The id number of the Patch which uses this capability
  patchId: {
    class: :Integer,
    do_not_send: true,
    readonly: true
  }

}.freeze

Constants inherited from BaseClasses::Criterion

BaseClasses::Criterion::ATTRIBUTES_TO_UPDATE_TOGETHER, BaseClasses::Criterion::TYPES, BaseClasses::Criterion::TYPE_EA, BaseClasses::Criterion::TYPE_RECON

Constants inherited from BaseClasses::JSONObject

BaseClasses::JSONObject::PP_OMITTED_INST_VARS

Instance Attribute Summary collapse

Attributes inherited from BaseClasses::Criterion

#absoluteOrderId, #and_or, #name, #operator, #type, #value

Attributes inherited from BaseClasses::JSONObject

#init_data

Class Method Summary collapse

Methods included from Mixins::APICollection

#==, #cnx, #container, #create_on_server, #delete, #deleted_id, included, #initialize, #pretty_print_instance_variables, #primary_id, #softwareTitle, #update_on_server

Methods inherited from BaseClasses::Criterion

#initialize, #local_absoluteOrderId=, #to_api

Methods included from Mixins::Immutable

extended, #mutable?

Methods inherited from BaseClasses::JSONObject

attribute_already_parsed?, ident_keys, #initialize, json_attributes, json_attributes_parsed, mutable?, parse_json_attributes, #pretty_print_instance_variables, primary_id_key, required_attributes, #to_api, #to_json, validate_attr

Instance Attribute Details

#capabilityIdInteger

Returns The id number of this capability.

Returns:

  • (Integer)

    The id number of this capability



# File 'lib/windoo/objects/capability.rb', line 35

#patchIdInteger

Returns The id number of the Patch which uses this capability.

Returns:

  • (Integer)

    The id number of the Patch which uses this capability



# File 'lib/windoo/objects/capability.rb', line 44

Class Method Details

.fetch(*_args) ⇒ Object



58
59
60
# File 'lib/windoo/objects/capability.rb', line 58

def self.fetch(*_args)
  raise Windoo::UnsupportedError, 'Capabilities are fetched as part of the Patch that contains them'
end