class AFCSalesforce::Models::Base

Public Class Methods

new(options={}) click to toggle source
# File lib/afc_salesforce/models/base.rb, line 6
def initialize(options={})
  options.each do |attribute_name, attribute_value|
    self.send("#{attribute_name}=".to_sym, attribute_value)
  end
end

Public Instance Methods

to_h() click to toggle source
# File lib/afc_salesforce/models/base.rb, line 12
def to_h
  {}.select{ |k,v| !v.nil? }
end