module RdDevTest::Person

Public Class Methods

all_person() click to toggle source
# File lib/rd_dev_test/person.rb, line 19
def self.all_person
  Highrise::Person.all
end
delete_person_highrise(id) click to toggle source
# File lib/rd_dev_test/person.rb, line 14
def self.delete_person_highrise(id)
  person = Highrise::Person.find(id)
  person.destroy
end
save_highrise(pes) click to toggle source
# File lib/rd_dev_test/person.rb, line 4
def self.save_highrise(pes)
  person = Highrise::Person.new(pes)
  begin
    person.save!
  rescue Exception => e
      puts person.errors
  end
  person.attributes[:id]
end