Class: Arel::Nodes::TimeWithPrecision

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/extensions/time_with_precision.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

Constructor Details

#initialize(precision: nil) ⇒ TimeWithPrecision

Returns a new instance of TimeWithPrecision.



6
7
8
9
10
# File 'lib/arel/extensions/time_with_precision.rb', line 6

def initialize(precision: nil)
  super()

  @precision = precision
end

Instance Attribute Details

#precisionObject (readonly)

Returns the value of attribute precision.



4
5
6
# File 'lib/arel/extensions/time_with_precision.rb', line 4

def precision
  @precision
end