module FindByNumber # Returns handle with a given number. def find_by_number(number) response = request('FindByNumber', { 'number' => number }) if response == {} nil else entity = build entity.partial = true entity.persisted = true entity.handle = response entity.number = response[:number].to_i entity end end end