class Gerint::Padrao

Public Instance Methods

obj_to_hash(object = self, hash = {}) click to toggle source
# File lib/gerint/servicos/padrao.rb, line 8
def obj_to_hash(object = self, hash = {})
    object.each_pair do |key, value|
        hash[key] = value
    end
    hash
end
obj_to_json(object = self) click to toggle source
# File lib/gerint/servicos/padrao.rb, line 15
def obj_to_json(object = self)
    self.obj_to_hash(object).to_json
end