Class: Object

Inherits:
BasicObject
Defined in:
lib/eac_fs/patches/object/fs_cache.rb

Instance Method Summary collapse

Instance Method Details

#fs_object_idString+

Returns:

  • (String, Array<String>)


24
25
26
# File 'lib/eac_fs/patches/object/fs_cache.rb', line 24

def fs_object_id
  raise 'Abstract method hit'
end

#fs_object_id_by_type(type) ⇒ Object



28
29
30
31
# File 'lib/eac_fs/patches/object/fs_cache.rb', line 28

def fs_object_id_by_type(type)
  method = "fs_#{type}_object_id"
  respond_to?(method) ? send(method) : fs_object_id
end