Module: Jamf::ManagementHistory::HashLike

Included in:
AuditEvent, CasperImagingLog, CasperRemoteLog, ComputerUsageLog, Ebook, MacAppStoreApp, MdmCommand, MobileDeviceApp, PolicyLog, ScreenSharingLog, UserLocationChange
Defined in:
lib/jamf/api/classic/api_objects/management_history/hash_like.rb

Overview

This is mixed in to the history event classes to provide hash-like access to their attributes, so that some_event works the same as some_event.date_time just as with OpenStruct objects

Instance Method Summary collapse

Instance Method Details

#[](attr) ⇒ Object



20
21
22
# File 'lib/jamf/api/classic/api_objects/management_history/hash_like.rb', line 20

def [](attr)
  send attr.to_sym
end