Class: Array

Inherits:
Object show all
Defined in:
lib/yake/support/array.rb

Overview

Array helpers

Instance Method Summary collapse

Instance Method Details

#pluck(key) ⇒ Object



6
# File 'lib/yake/support/array.rb', line 6

def pluck(key)  = map { |x| x[key] }

#to_dynamodbObject



7
# File 'lib/yake/support/array.rb', line 7

def to_dynamodb = { L: map(&:to_dynamodb) }