Sha256: 89376db098df286936e68a9c0dc84dc1bb1b634d82e59b27dc93f3998bd18b6e

Contents?: true

Size: 279 Bytes

Versions: 9

Compression:

Stored size: 279 Bytes

Contents

module NotRelational

class IsNullTransform
  attr_accessor :name
  attr_accessor :source_column 
  def initialize(source_column )
    self.source_column =source_column 
    self.name = "#{name}_is_null".to_sym
  end
  def transform(value)
    value.nil?.to_s
  end
 
  
end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
cloudwow-not_relational-0.1.0 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.11 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.2 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.3 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.5 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.6 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.7 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.8 lib/not_relational/is_null_transform.rb
cloudwow-not_relational-0.1.9 lib/not_relational/is_null_transform.rb