class Upsert::Connection
@private
Attributes
controller[R]
metal[R]
Public Class Methods
new(controller, metal)
click to toggle source
# File lib/upsert/connection.rb, line 7 def initialize(controller, metal) @controller = controller @metal = metal end
Public Instance Methods
bind_value(v)
click to toggle source
# File lib/upsert/connection.rb, line 23 def bind_value(v) case v when Time, DateTime Upsert.utc_iso8601 v when Date v.strftime ISO8601_DATE when Symbol v.to_s else v end end
convert_binary(bind_values)
click to toggle source
# File lib/upsert/connection.rb, line 12 def convert_binary(bind_values) bind_values.map do |v| case v when Upsert::Binary binary v else v end end end