Class: Videojuicer::OAuth::Multipart

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/videojuicer/oauth/multipart_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ undefined

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Initialize a Multipart object

Parameters:

  • params (#each) (defaults to: {})


13
14
15
16
# File 'lib/videojuicer/oauth/multipart_helper.rb', line 13

def initialize(params = {})
  @params = []
  process_params(params)
end

Instance Method Details

#each {|key, value| ... } ⇒ self

Iterate over each parameter pair

Examples:

multipart = Multipart.new(params)
multipart.each { |key, value| ... }

Yields:

  • (key, value)

Yield Parameters:

  • key (#to_s)

    the parameter key

  • value (Object)

    the parameter value

Returns:

  • (self)


34
35
36
37
# File 'lib/videojuicer/oauth/multipart_helper.rb', line 34

def each(&block)
  @params.each(&block)
  self
end