Module: Restforce::Bulk::Attributes

Included in:
Batch, Job, Result
Defined in:
lib/restforce/bulk/attributes.rb

Instance Method Summary collapse

Instance Method Details

#assign_attributes(value) ⇒ Object



4
5
6
7
8
# File 'lib/restforce/bulk/attributes.rb', line 4

def assign_attributes(value)
  value.each do |attr, value|
    send("#{attr.to_s.underscore}=", value) if respond_to?("#{attr.to_s.underscore}=")
  end
end