Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
pass in object itself
class ObserverSearchData
attr_reader :search_data
def initialize(obj, search_data)
@obj = obj
@search_data = search_data
end
def object_name
@obj.class.name.downcase
end
def id
@obj.id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment