Sha256: 7c578e5e2fe1ed91ba47c8ab39dd8ba5b684e1cc324ad4db4e3924c0e82964ef

Contents?: true

Size: 407 Bytes

Versions: 58

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

# Sequel uses send by default
module Sequel::Plugins::GetColumnValue
  module InstanceMethods
    # Returns a raw column value
    #
    # @example
    #   o = Order::Model.first
    #   o.amount # => #<Money fractional:5000.0 currency:USD>
    #   o.get_column_value(:amount) # => 0.5e2
    # @return value
    def get_column_value(value)
      self[value]
    end
  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
umbrellio-sequel-plugins-0.12.0.159 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.11.0.143 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.10.0.101 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.10.0.100 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.10.0.86 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.9.0.79 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.9.0.76 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.8.0.73 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.7.0.52 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.6.0.46 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.6.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.6.0.36 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1.27 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1.26 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1.25 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1.18 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1.17 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.1 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.5.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.164 lib/sequel/plugins/get_column_value.rb