Class: OmniSocials::NotGiven

Inherits:
Object
  • Object
show all
Defined in:
lib/omnisocials/internal.rb

Overview

Sentinel distinguishing "omitted" from an explicit nil.

A few endpoints treat null as meaningful (for example media.update(folder_id: nil) moves a file to the root folder), so nil cannot double as "not provided" there. Use OmniSocials::NOT_GIVEN as the default for those parameters.

Instance Method Summary collapse

Instance Method Details

#inspectObject Also known as: to_s



14
15
16
# File 'lib/omnisocials/internal.rb', line 14

def inspect
  "NOT_GIVEN"
end