lib/jss/api_object/computer_invitation.rb in ruby-jss-1.0.4 vs lib/jss/api_object/computer_invitation.rb in ruby-jss-1.1.0b1
- old
+ new
@@ -51,17 +51,10 @@
#####################################
include JSS::Creatable
include JSS::Sitable
- # Class Methods
- #####################################
-
- def self.all_invitations(refresh = false, api: JSS.api)
- all(refresh, api: api).map { |ci| ci[:invitation] }
- end
-
# Class Constants
#####################################
# The base for REST resources of this class
RSRC_BASE = 'computerinvitations'.freeze
@@ -71,15 +64,12 @@
# The hash key used for the JSON object output.
# It's also used in various error messages
RSRC_OBJECT_KEY = :computer_invitation
- # these keys, as well as :id and :name, are present in valid API JSON data for this class
- VALID_DATA_KEYS = [:invitation].freeze
-
# See JSS::APIObject
OTHER_LOOKUP_KEYS = {
- invitation: {rsrc_key: :invitation, list: :all_invitations}
+ invitation: { fetch_rsrc_key: :invitation }
}.freeze
# the object type for this object in
# the object history table.
# See {APIObject#add_object_history_entry}