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[:date_time]

works the same as

some_event.date_time

just as with OpenStruct objects

Instance Method Summary collapse

Instance Method Details

#[](attr) ⇒ Object



40
41
42
# File 'lib/jamf/api/classic/api_objects/management_history/hash_like.rb', line 40

def [](attr)
  send attr.to_sym
end