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.4.0.152 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.145 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.134 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.121 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.114 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.112 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.107 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.4.0.81 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.1.77 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.1.69 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.1.68 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.0.67 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.0.62 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.3.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.2.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.1.2 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.1.1 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.1.0 lib/sequel/plugins/get_column_value.rb