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


16
17
18
# File 'lib/jss/api_object/management_history/hashlike.rb', line 16

def [](attr)
  send attr.to_sym
end