Module: JSS::ManagementHistory::HashLike

Included in:
AuditEvent, CasperImagingLog, CasperRemoteLog, ComputerUsageLog, EBook, MDMCommand, MacAppStoreApp, MobileDeviceApp, PolicyLog, ScreenSharingLog, UserLocationChange
Defined in:
lib/jss/api_object/management_history/hashlike.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/jss/api_object/management_history/hashlike.rb', line 40

def [](attr)
  send attr.to_sym
end