lib/spreadsheet_agent/agent.rb
def get_entry
      this_entry = nil
      if @worksheet
        @worksheet.list.each do |this_row|
          keep_row = true

          @config['key_fields'].keys.reject { |key_field|
            !(@config['key_fields'][key_field]["required"]) && !(@keys[key_field])
          }.each do |key|
            break unless keep_row
            keep_row = (this_row[key] == @keys[key])
          end
        
          if keep_row
            return this_row
          end
        end
      end
    end
def get_entry
      this_entry = nil
      if @worksheet
        @worksheet.list.each do |this_row|
          keep_row = true

          @config['key_fields'].keys.reject { |key_field|
            !(@config['key_fields'][key_field]["required"]) && !(@keys[key_field])
          }.each do |key|
            break unless keep_row
            keep_row = (this_row[key] == @keys[key])
          end
        
          if keep_row
            return this_row
          end
        end
      end
    end
def get_entry this_entry = nil if @worksheet @worksheet . list . each do | this_row | keep_row = true @config [ 'key_fields' ] . keys . reject { | key_field | ! ( @config [ 'key_fields' ] [ key_field ] [ "required" ] ) && ! ( @keys [ key_field ] ) } . each do | key | break unless keep_row keep_row = ( this_row [ key ] == @keys [ key ] ) end if keep_row return this_row end end end end
The GoogleDrive::List[http://rubydoc.info/gems/google_drive/0.3.6/GoogleDrive/List] for the specified keys
 @return [GoogleDrive::List]
The GoogleDrive :: List [ http : // rubydoc . info / gems / google_drive / 0 . 3 . 6 / GoogleDrive / List ] for the specified keys