lib/command/client/requestable.rb
#
# Returns an array of instantiated models with attributes properly set.
#
Returns an array of instantiated models with attributes properly set.
Returns an array of instantiated models with attributes properly set .
def many(attrs, *opts)
          [attrs].compact.flatten.map { |model_attrs|
            new(model_attrs)
          }.reject(&:worthless?)
        end
def many ( attrs , * opts ) [ attrs ] . compact . flatten . map { | model_attrs | new ( model_attrs ) } . reject ( & :worthless? ) end
Returns an array of instantiated models with attributes properly set.
Returns an array of instantiated models with attributes properly set .
attrs
<not_specific>
opts
<not_specific>