Class: Fetch::FormData

Inherits:
MultiMap show all
Defined in:
lib/fetch/form_data.rb

Instance Attribute Summary

Attributes inherited from MultiMap

#entries

Class Method Summary collapse

Methods inherited from MultiMap

#append, #delete, #each, #get, #get_all, #has, #initialize, #keys, #set, #values

Constructor Details

This class inherits a constructor from Fetch::MultiMap

Class Method Details

.build(enumerable) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/fetch/form_data.rb', line 5

def self.build(enumerable)
  data = FormData.new

  enumerable.each do |k, v|
    data.append k, v
  end

  data
end