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.17.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.1 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.239 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.238 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.235 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.234 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.233 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.16.0.211 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.15.0.198 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.14.0.192 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.14.0.189 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.14.0.188 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.14.0.187 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.14.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.13.0.185 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.13.0.172 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.13.0 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.12.0.169 lib/sequel/plugins/get_column_value.rb
umbrellio-sequel-plugins-0.12.0 lib/sequel/plugins/get_column_value.rb