class Helpers
Public Instance Methods
objects_to_hash(obj_array)
click to toggle source
# File lib/foxit/helpers.rb, line 8 def objects_to_hash obj_array docs = [] obj_array.map { |obj| docs << obj.to_hash } docs end
to_hash()
click to toggle source
# File lib/foxit/helpers.rb, line 2 def to_hash hash = {} instance_variables.each {|x| hash[x.to_s.delete("@")] = instance_variable_get(x)} hash end