Method: Invoicing::TimeDependent::ClassMethods#default_value_at

Defined in:
lib/invoicing/time_dependent.rb

#default_value_at(point_in_time) ⇒ Object

Finds the default record for a particular point_in_time (using default_record_at), then returns the value of that record’s value column. If value was renamed to another_method_name (option to acts_as_time_dependent), then default_another_method_name_at is defined as an alias for default_value_at.



281
282
283
# File 'lib/invoicing/time_dependent.rb', line 281

def default_value_at(point_in_time)
  time_dependent_class_info.get(default_record_at(point_in_time), :value)
end