Module: ROM::Plugins::Command::Timestamps::InstanceMethods

Defined in:
lib/rom/plugins/command/timestamps.rb

Overview

API:

  • public

Instance Method Summary collapse

Instance Method Details

#datestamp_columnsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



65
66
67
# File 'lib/rom/plugins/command/timestamps.rb', line 65

def datestamp_columns
  self.class.datestamp_columns
end

#set_timestamps(tuples) ⇒ Array<Hash>, Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Set the timestamp attributes on the given tuples

Parameters:

  • the input tuple(s)

Returns:

API:

  • private



76
77
78
79
80
# File 'lib/rom/plugins/command/timestamps.rb', line 76

def set_timestamps(tuples, *)
  timestamps = build_timestamps

  map_input_tuples(tuples) { |t| timestamps.merge(t) }
end

#timestamp_columnsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

API:

  • private



60
61
62
# File 'lib/rom/plugins/command/timestamps.rb', line 60

def timestamp_columns
  self.class.timestamp_columns
end